summaryrefslogtreecommitdiffstats
path: root/servers/navigation_server_3d.h
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-07-06 23:01:19 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2023-07-26 01:20:15 +0200
commit69fad39cf5437b45bac2039d864605b2b63b9950 (patch)
treebe6153824e69c6ae1f8391d266a802f58630263a /servers/navigation_server_3d.h
parent202e4b2c1e7f8b25738b93d0e4d5066453d3edf3 (diff)
downloadredot-engine-69fad39cf5437b45bac2039d864605b2b63b9950.tar.gz
Add NavigationServer API to enable regions and links
Adds NavigationServer API to enable regions and links.
Diffstat (limited to 'servers/navigation_server_3d.h')
-rw-r--r--servers/navigation_server_3d.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/servers/navigation_server_3d.h b/servers/navigation_server_3d.h
index 0764690b81..391730e18f 100644
--- a/servers/navigation_server_3d.h
+++ b/servers/navigation_server_3d.h
@@ -117,6 +117,9 @@ public:
/// Creates a new region.
virtual RID region_create() = 0;
+ virtual void region_set_enabled(RID p_region, bool p_enabled) = 0;
+ virtual bool region_get_enabled(RID p_region) const = 0;
+
virtual void region_set_use_edge_connections(RID p_region, bool p_enabled) = 0;
virtual bool region_get_use_edge_connections(RID p_region) const = 0;
@@ -165,6 +168,9 @@ public:
virtual void link_set_map(RID p_link, RID p_map) = 0;
virtual RID link_get_map(RID p_link) const = 0;
+ virtual void link_set_enabled(RID p_link, bool p_enabled) = 0;
+ virtual bool link_get_enabled(RID p_link) const = 0;
+
/// Set whether this link travels in both directions.
virtual void link_set_bidirectional(RID p_link, bool p_bidirectional) = 0;
virtual bool link_is_bidirectional(RID p_link) const = 0;