Partial implementation of road deletion
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user