Setting up groundwork for vehicle (car) and pathfinding implementation

This commit is contained in:
2026-04-26 16:53:46 +02:00
parent ae5e68e2a5
commit 533b6b1c00
8 changed files with 131 additions and 24 deletions

View File

@@ -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,
}
}