diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-10 12:07:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 12:07:46 +0100 |
commit | bc229cdf29fd6177bac070a70be273768c36f21a (patch) | |
tree | 027ac69c671f58121a13a41b21c64d3deb3a81c6 /scene/2d/navigation_region_2d.h | |
parent | 469ac1e4152b75b2e3b88cf7bc3a9623f0d7da39 (diff) | |
parent | ba1344408f66592eb1bec0b91b5bcdea8385ccdc (diff) |
Merge pull request #46786 from groud/navigation
Remove Navigation2D/3D nodes
Diffstat (limited to 'scene/2d/navigation_region_2d.h')
-rw-r--r-- | scene/2d/navigation_region_2d.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/navigation_region_2d.h b/scene/2d/navigation_region_2d.h index 0b9a258a25..7b471bd555 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<NavigationPolygon> navpoly; void _navpoly_changed(); @@ -116,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<NavigationPolygon> &p_navpoly); Ref<NavigationPolygon> get_navigation_polygon() const; |