Basic Entity ID display for debugging
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user