Initial commit
This commit is contained in:
13
infrastructure/road.odin
Normal file
13
infrastructure/road.odin
Normal file
@@ -0,0 +1,13 @@
|
||||
package infrastructure
|
||||
|
||||
Road :: struct {
|
||||
id: u32,
|
||||
nodes: [2]u32,
|
||||
}
|
||||
|
||||
road_init :: proc(new_id: u32, start: u32, end: u32) -> Road {
|
||||
return {
|
||||
id = new_id,
|
||||
nodes = {start, end}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user