Initial commit
This commit is contained in:
19
infrastructure/node.odin
Normal file
19
infrastructure/node.odin
Normal file
@@ -0,0 +1,19 @@
|
||||
package infrastructure
|
||||
|
||||
import rl "vendor:raylib"
|
||||
|
||||
Node :: struct {
|
||||
id: u32,
|
||||
enabled: bool,
|
||||
pos: rl.Vector2,
|
||||
roads: [dynamic]u32,
|
||||
}
|
||||
|
||||
node_init :: proc(new_id: u32, new_pos: rl.Vector2) -> Node {
|
||||
return {
|
||||
id = new_id,
|
||||
enabled = true,
|
||||
pos = new_pos,
|
||||
roads = nil,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user