Setting up groundwork for vehicle (car) and pathfinding implementation
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
package infrastructure
|
||||
|
||||
import "../common"
|
||||
|
||||
Road :: struct {
|
||||
// Index to nodes that limit the road
|
||||
nodes: [2]u32,
|
||||
speed_limit: u8,
|
||||
}
|
||||
|
||||
// Road Initialisation
|
||||
road_init :: proc(start: u32, end: u32) -> Road {
|
||||
return {
|
||||
nodes = {start, end}
|
||||
nodes = {start, end},
|
||||
speed_limit = common.DEFAULT_SPEED_LIMIT,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user