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.
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
NavigationServer3D *NavigationServer3D::singleton = nullptr;
|
||||
|
||||
void NavigationServer3D::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_maps"), &NavigationServer3D::get_maps);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("map_create"), &NavigationServer3D::map_create);
|
||||
ClassDB::bind_method(D_METHOD("map_set_active", "map", "active"), &NavigationServer3D::map_set_active);
|
||||
ClassDB::bind_method(D_METHOD("map_is_active", "nap"), &NavigationServer3D::map_is_active);
|
||||
|
||||
Reference in New Issue
Block a user