From ae018648fe91de6e7020cb58b88edf7536226754 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 9 Jun 2023 14:19:41 +0200 Subject: [PATCH] Added missing binds. --- servers/navigation_server.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/servers/navigation_server.cpp b/servers/navigation_server.cpp index 4c58c1e1b..2421b3df2 100644 --- a/servers/navigation_server.cpp +++ b/servers/navigation_server.cpp @@ -130,13 +130,24 @@ void NavigationServer::_bind_methods() { 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("get_process_info", "process_info"), &NavigationServer::get_process_info); + ClassDB::bind_method(D_METHOD("set_debug_enabled", "enabled"), &NavigationServer::set_debug_enabled); ClassDB::bind_method(D_METHOD("get_debug_enabled"), &NavigationServer::get_debug_enabled); ADD_SIGNAL(MethodInfo("map_changed", PropertyInfo(Variant::RID, "map"))); - ADD_SIGNAL(MethodInfo("navigation_debug_changed")); + BIND_ENUM_CONSTANT(INFO_ACTIVE_MAPS); + BIND_ENUM_CONSTANT(INFO_REGION_COUNT); + BIND_ENUM_CONSTANT(INFO_AGENT_COUNT); + BIND_ENUM_CONSTANT(INFO_LINK_COUNT); + BIND_ENUM_CONSTANT(INFO_POLYGON_COUNT); + BIND_ENUM_CONSTANT(INFO_EDGE_COUNT); + BIND_ENUM_CONSTANT(INFO_EDGE_MERGE_COUNT); + BIND_ENUM_CONSTANT(INFO_EDGE_CONNECTION_COUNT); + BIND_ENUM_CONSTANT(INFO_EDGE_FREE_COUNT); + #ifdef DEBUG_ENABLED ClassDB::bind_method(D_METHOD("_emit_navigation_debug_changed_signal"), &NavigationServer::_emit_navigation_debug_changed_signal); #endif // DEBUG_ENABLED