From a9dc53d152c25af8f291031917dbbee3029f6276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gilles=20Roudi=C3=A8re?= Date: Mon, 8 Mar 2021 09:47:18 +0100 Subject: Remove Navigation2D/3D nodes, and move the navigation map to the world resource --- scene/2d/navigation_region_2d.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'scene/2d/navigation_region_2d.h') diff --git a/scene/2d/navigation_region_2d.h b/scene/2d/navigation_region_2d.h index 0b9a258a25..25a886b446 100644 --- a/scene/2d/navigation_region_2d.h +++ b/scene/2d/navigation_region_2d.h @@ -91,14 +91,11 @@ public: ~NavigationPolygon() {} }; -class Navigation2D; - class NavigationRegion2D : public Node2D { GDCLASS(NavigationRegion2D, Node2D); bool enabled = true; RID region; - Navigation2D *navigation = nullptr; Ref navpoly; void _navpoly_changed(); -- cgit v1.2.3 From ba1344408f66592eb1bec0b91b5bcdea8385ccdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gilles=20Roudi=C3=A8re?= Date: Mon, 8 Mar 2021 20:56:33 +0100 Subject: Implement Navigation layers --- scene/2d/navigation_region_2d.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/2d/navigation_region_2d.h') diff --git a/scene/2d/navigation_region_2d.h b/scene/2d/navigation_region_2d.h index 25a886b446..7b471bd555 100644 --- a/scene/2d/navigation_region_2d.h +++ b/scene/2d/navigation_region_2d.h @@ -113,6 +113,9 @@ public: void set_enabled(bool p_enabled); bool is_enabled() const; + void set_layers(uint32_t p_layers); + uint32_t get_layers() const; + void set_navigation_polygon(const Ref &p_navpoly); Ref get_navigation_polygon() const; -- cgit v1.2.3