Rename NavigationServer's free method to free_rid

This commit is contained in:
Haoyu Qiu 2022-04-08 17:31:04 +08:00
parent 14856b1dbd
commit f24312380f
4 changed files with 6 additions and 6 deletions

View file

@ -109,9 +109,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

@ -109,9 +109,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

@ -160,7 +160,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

@ -73,7 +73,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);