diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-12-10 22:01:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 22:01:34 +0100 |
commit | c3d7f7a57ebbb8ce47f44997d6936bffd81e9160 (patch) | |
tree | e29c6ac89205bbd198d7e951184a2e3fef1c8e2e /servers/navigation_server_3d.h | |
parent | 8f6f2446805aa940255f7cfaf2cee3f66d00eddc (diff) | |
parent | 5769b0e8d8db75ff500c979aa63d3f3428de526d (diff) |
Merge pull request #66729 from DarkKilauea/nav-owners
Enable assigning an owner to navigation regions and links
Diffstat (limited to 'servers/navigation_server_3d.h')
-rw-r--r-- | servers/navigation_server_3d.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/servers/navigation_server_3d.h b/servers/navigation_server_3d.h index 0f537383a2..31ae149aff 100644 --- a/servers/navigation_server_3d.h +++ b/servers/navigation_server_3d.h @@ -120,6 +120,10 @@ public: virtual void region_set_travel_cost(RID p_region, real_t p_travel_cost) const = 0; virtual real_t region_get_travel_cost(RID p_region) const = 0; + /// Set the node which manages this region. + virtual void region_set_owner_id(RID p_region, ObjectID p_owner_id) const = 0; + virtual ObjectID region_get_owner_id(RID p_region) const = 0; + virtual bool region_owns_point(RID p_region, const Vector3 &p_point) const = 0; /// Set the map of this region. @@ -175,6 +179,10 @@ public: virtual void link_set_travel_cost(RID p_link, real_t p_travel_cost) const = 0; virtual real_t link_get_travel_cost(RID p_link) const = 0; + /// Set the node which manages this link. + virtual void link_set_owner_id(RID p_link, ObjectID p_owner_id) const = 0; + virtual ObjectID link_get_owner_id(RID p_link) const = 0; + /// Creates the agent. virtual RID agent_create() const = 0; |