summaryrefslogtreecommitdiffstats
path: root/scene/resources/2d/navigation_polygon.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/2d/navigation_polygon.h')
-rw-r--r--scene/resources/2d/navigation_polygon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/2d/navigation_polygon.h b/scene/resources/2d/navigation_polygon.h
index b9816f900c..4e99660b0e 100644
--- a/scene/resources/2d/navigation_polygon.h
+++ b/scene/resources/2d/navigation_polygon.h
@@ -36,6 +36,7 @@
class NavigationPolygon : public Resource {
GDCLASS(NavigationPolygon, Resource);
+ RWLock rwlock;
Vector<Vector2> vertices;
struct Polygon {
@@ -153,6 +154,9 @@ public:
void clear();
+ void set_data(const Vector<Vector2> &p_vertices, const Vector<Vector<int>> &p_polygons);
+ void get_data(Vector<Vector2> &r_vertices, Vector<Vector<int>> &r_polygons);
+
NavigationPolygon() {}
~NavigationPolygon() {}
};