summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-16 13:46:49 +0200
committerGitHub <noreply@github.com>2022-05-16 13:46:49 +0200
commitf3c0e75fbae70acae4a3d5c2201ca3a281f7575f (patch)
tree8e6665ef684b0c2eba61247a761819117db20604 /doc/classes
parentd6e7dcbea9c297253e05a75691d5707aa0a749b3 (diff)
parent371054e3e5a20325200cc7ba7bbbce6b6a4588c3 (diff)
Merge pull request #60958 from smix8/navigation_server_rid_utility_4.x
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/NavigationServer2D.xml28
-rw-r--r--doc/classes/NavigationServer3D.xml28
2 files changed, 56 insertions, 0 deletions
diff --git a/doc/classes/NavigationServer2D.xml b/doc/classes/NavigationServer2D.xml
index e007dfd9b5..928834101f 100644
--- a/doc/classes/NavigationServer2D.xml
+++ b/doc/classes/NavigationServer2D.xml
@@ -21,6 +21,13 @@
Creates the agent.
</description>
</method>
+ <method name="agent_get_map" qualifiers="const">
+ <return type="RID" />
+ <argument index="0" name="agent" type="RID" />
+ <description>
+ Returns the navigation map [RID] the requested [code]agent[/code] is currently assigned to.
+ </description>
+ </method>
<method name="agent_is_map_changed" qualifiers="const">
<return type="bool" />
<argument index="0" name="agent" type="RID" />
@@ -123,6 +130,13 @@
Create a new map.
</description>
</method>
+ <method name="map_get_agents" qualifiers="const">
+ <return type="Array" />
+ <argument index="0" name="map" type="RID" />
+ <description>
+ Returns all navigation agents [RID]s that are currently assigned to the requested navigation [code]map[/code].
+ </description>
+ </method>
<method name="map_get_cell_size" qualifiers="const">
<return type="float" />
<argument index="0" name="map" type="RID" />
@@ -164,6 +178,13 @@
Returns the navigation path to reach the destination from the origin. [code]layers[/code] is a bitmask of all region layers that are allowed to be in the path.
</description>
</method>
+ <method name="map_get_regions" qualifiers="const">
+ <return type="Array" />
+ <argument index="0" name="map" type="RID" />
+ <description>
+ Returns all navigation regions [RID]s that are currently assigned to the requested navigation [code]map[/code].
+ </description>
+ </method>
<method name="map_is_active" qualifiers="const">
<return type="bool" />
<argument index="0" name="nap" type="RID" />
@@ -231,6 +252,13 @@
Returns the region's layers.
</description>
</method>
+ <method name="region_get_map" qualifiers="const">
+ <return type="RID" />
+ <argument index="0" name="region" type="RID" />
+ <description>
+ Returns the navigation map [RID] the requested [code]region[/code] is currently assigned to.
+ </description>
+ </method>
<method name="region_set_layers" qualifiers="const">
<return type="void" />
<argument index="0" name="region" type="RID" />
diff --git a/doc/classes/NavigationServer3D.xml b/doc/classes/NavigationServer3D.xml
index c987bc9042..8c83fe5485 100644
--- a/doc/classes/NavigationServer3D.xml
+++ b/doc/classes/NavigationServer3D.xml
@@ -21,6 +21,13 @@
Creates the agent.
</description>
</method>
+ <method name="agent_get_map" qualifiers="const">
+ <return type="RID" />
+ <argument index="0" name="agent" type="RID" />
+ <description>
+ Returns the navigation map [RID] the requested [code]agent[/code] is currently assigned to.
+ </description>
+ </method>
<method name="agent_is_map_changed" qualifiers="const">
<return type="bool" />
<argument index="0" name="agent" type="RID" />
@@ -123,6 +130,13 @@
Create a new map.
</description>
</method>
+ <method name="map_get_agents" qualifiers="const">
+ <return type="Array" />
+ <argument index="0" name="map" type="RID" />
+ <description>
+ Returns all navigation agents [RID]s that are currently assigned to the requested navigation [code]map[/code].
+ </description>
+ </method>
<method name="map_get_cell_size" qualifiers="const">
<return type="float" />
<argument index="0" name="map" type="RID" />
@@ -182,6 +196,13 @@
Returns the navigation path to reach the destination from the origin. [code]layers[/code] is a bitmask of all region layers that are allowed to be in the path.
</description>
</method>
+ <method name="map_get_regions" qualifiers="const">
+ <return type="Array" />
+ <argument index="0" name="map" type="RID" />
+ <description>
+ Returns all navigation regions [RID]s that are currently assigned to the requested navigation [code]map[/code].
+ </description>
+ </method>
<method name="map_get_up" qualifiers="const">
<return type="Vector3" />
<argument index="0" name="map" type="RID" />
@@ -281,6 +302,13 @@
Returns the region's layers.
</description>
</method>
+ <method name="region_get_map" qualifiers="const">
+ <return type="RID" />
+ <argument index="0" name="region" type="RID" />
+ <description>
+ Returns the navigation map [RID] the requested [code]region[/code] is currently assigned to.
+ </description>
+ </method>
<method name="region_set_layers" qualifiers="const">
<return type="void" />
<argument index="0" name="region" type="RID" />