summaryrefslogtreecommitdiff
path: root/servers/navigation_server_2d.h
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2022-08-09 12:21:45 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2022-08-09 12:21:45 +0200
commitd254f0fa5f2fe23c4746b5b5a0f0e44f8613a0eb (patch)
tree8ede16a5fb80918ad492398f4579d053993d7b78 /servers/navigation_server_2d.h
parentc2eaaef1497f8ad557aea9a14e2b3e0582fcfe54 (diff)
Add NavigationServer2D debug functions
Adds debug functions to NavigationServer2D to mirror NavigationServer3D functions for 2D users.
Diffstat (limited to 'servers/navigation_server_2d.h')
-rw-r--r--servers/navigation_server_2d.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/servers/navigation_server_2d.h b/servers/navigation_server_2d.h
index 1b15c7ff37..83271f990e 100644
--- a/servers/navigation_server_2d.h
+++ b/servers/navigation_server_2d.h
@@ -184,6 +184,23 @@ public:
NavigationServer2D();
virtual ~NavigationServer2D();
+
+#ifdef DEBUG_ENABLED
+ void set_debug_enabled(bool p_enabled);
+ bool get_debug_enabled() const;
+
+ void set_debug_navigation_edge_connection_color(const Color &p_color);
+ Color get_debug_navigation_edge_connection_color() const;
+
+ void set_debug_navigation_geometry_face_color(const Color &p_color);
+ Color get_debug_navigation_geometry_face_color() const;
+
+ void set_debug_navigation_geometry_face_disabled_color(const Color &p_color);
+ Color get_debug_navigation_geometry_face_disabled_color() const;
+
+ void set_debug_navigation_enable_edge_connections(const bool p_value);
+ bool get_debug_navigation_enable_edge_connections() const;
+#endif // DEBUG_ENABLED
};
#endif // NAVIGATION_SERVER_2D_H