Additional comments
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user