From 69fad39cf5437b45bac2039d864605b2b63b9950 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Thu, 6 Jul 2023 23:01:19 +0200 Subject: Add NavigationServer API to enable regions and links Adds NavigationServer API to enable regions and links. --- servers/navigation_server_3d.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'servers/navigation_server_3d.h') 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; -- cgit v1.2.3