Basic Entity ID display for debugging

This commit is contained in:
2026-05-01 15:44:00 +02:00
parent 2a3064b0fe
commit 643712f529
7 changed files with 64 additions and 31 deletions

View File

@@ -27,10 +27,10 @@ pub const RoadManager = struct {
}
/// Draws all the roads in the list, sends the information ahead whether the road drawn should be highlighted
pub fn draw(self: *const RoadManager, highlighted_road: ?*Road) void {
pub fn draw(self: *const RoadManager, highlighted_road: ?*Road, display_info: bool) void {
for (self.roads.items) |road| {
const is_highlighted = if (highlighted_road) |h_road| road == h_road else false;
road.draw(is_highlighted);
road.draw(is_highlighted, display_info);
}
}