Partial implementation of road deletion

This commit is contained in:
2026-04-25 13:16:50 +02:00
parent ac78f526df
commit edce3f67a6
6 changed files with 153 additions and 22 deletions

View File

@@ -46,5 +46,16 @@ node_unreference_road :: proc(self: ^Node, road_to_unref: u32) -> bool {
return true
}
return false
}
node_update_road_reference :: proc(self: ^Node, old_ref: u32, new_ref: u32) -> bool {
for &road in self.roads {
if road != old_ref do continue
road = new_ref
return true
}
return false
}