Code restructuring
This commit is contained in:
16
src/common/structures.odin
Normal file
16
src/common/structures.odin
Normal file
@@ -0,0 +1,16 @@
|
||||
package common
|
||||
|
||||
import rl "vendor:raylib"
|
||||
|
||||
// Stores data about intersections
|
||||
Intersection_Data :: struct {
|
||||
// Index of the road that is intersected
|
||||
road: u32,
|
||||
// The exact point of intersection
|
||||
point: rl.Vector2,
|
||||
}
|
||||
|
||||
Entity :: enum {
|
||||
Node,
|
||||
Road,
|
||||
}
|
||||
Reference in New Issue
Block a user