You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add Navigation function to get all navigation maps
Added new function that returns all created navigation map RIDs from the NavigationServer. The function returns both 2D and 3D created navigation maps as technically there is no distinction between them.
(cherry picked from commit c0fed1d4e8)
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
NavigationServer *NavigationServer::singleton = nullptr;
|
||||
|
||||
void NavigationServer::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_maps"), &NavigationServer::get_maps);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("map_create"), &NavigationServer::map_create);
|
||||
ClassDB::bind_method(D_METHOD("map_set_active", "map", "active"), &NavigationServer::map_set_active);
|
||||
ClassDB::bind_method(D_METHOD("map_is_active", "nap"), &NavigationServer::map_is_active);
|
||||
|
||||
Reference in New Issue
Block a user