Rename NavigationServer's free method to free_rid

This commit is contained in:
Haoyu Qiu 2022-04-08 17:31:04 +08:00 committed by Relintai
parent 8eb81855d9
commit a9b108ca47
4 changed files with 6 additions and 6 deletions

View File

@ -108,9 +108,9 @@
Sets the current velocity of the agent. Sets the current velocity of the agent.
</description> </description>
</method> </method>
<method name="free" qualifiers="const"> <method name="free_rid" qualifiers="const">
<return type="void" /> <return type="void" />
<argument index="0" name="object" type="RID" /> <argument index="0" name="rid" type="RID" />
<description> <description>
Destroys the given RID. Destroys the given RID.
</description> </description>

View File

@ -108,9 +108,9 @@
Sets the current velocity of the agent. Sets the current velocity of the agent.
</description> </description>
</method> </method>
<method name="free" qualifiers="const"> <method name="free_rid" qualifiers="const">
<return type="void" /> <return type="void" />
<argument index="0" name="object" type="RID" /> <argument index="0" name="rid" type="RID" />
<description> <description>
Destroys the given RID. Destroys the given RID.
</description> </description>

View File

@ -161,7 +161,7 @@ void Navigation2DServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("agent_is_map_changed", "agent"), &Navigation2DServer::agent_is_map_changed); ClassDB::bind_method(D_METHOD("agent_is_map_changed", "agent"), &Navigation2DServer::agent_is_map_changed);
ClassDB::bind_method(D_METHOD("agent_set_callback", "agent", "receiver", "method", "userdata"), &Navigation2DServer::agent_set_callback, DEFVAL(Variant())); ClassDB::bind_method(D_METHOD("agent_set_callback", "agent", "receiver", "method", "userdata"), &Navigation2DServer::agent_set_callback, DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("free", "object"), &Navigation2DServer::free); ClassDB::bind_method(D_METHOD("free_rid", "rid"), &Navigation2DServer::free);
} }
Navigation2DServer::Navigation2DServer() { Navigation2DServer::Navigation2DServer() {

View File

@ -76,7 +76,7 @@ void NavigationServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("agent_is_map_changed", "agent"), &NavigationServer::agent_is_map_changed); ClassDB::bind_method(D_METHOD("agent_is_map_changed", "agent"), &NavigationServer::agent_is_map_changed);
ClassDB::bind_method(D_METHOD("agent_set_callback", "agent", "receiver", "method", "userdata"), &NavigationServer::agent_set_callback, DEFVAL(Variant())); ClassDB::bind_method(D_METHOD("agent_set_callback", "agent", "receiver", "method", "userdata"), &NavigationServer::agent_set_callback, DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("free", "object"), &NavigationServer::free); ClassDB::bind_method(D_METHOD("free_rid", "rid"), &NavigationServer::free);
ClassDB::bind_method(D_METHOD("set_active", "active"), &NavigationServer::set_active); ClassDB::bind_method(D_METHOD("set_active", "active"), &NavigationServer::set_active);
ClassDB::bind_method(D_METHOD("process", "delta_time"), &NavigationServer::process); ClassDB::bind_method(D_METHOD("process", "delta_time"), &NavigationServer::process);