Additional comments

This commit is contained in:
2026-04-25 02:32:09 +02:00
parent c14ac533dc
commit ac78f526df
3 changed files with 23 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ import inf "infrastructure"
// PLAN AREA
// TODO implement deleting of roads
// TODO text/debug
// TODO full colour constant utilisation
Simulator :: struct {
// Stores all nodes
@@ -36,7 +38,12 @@ init :: proc() -> Simulator {
// Destructor
deinit :: proc(self: ^Simulator) {
self.temp_node_index = nil
delete(self.roads)
for &node in self.nodes {
inf.node_deinit(&node)
}
delete(self.nodes)
}