Allocate path with object pool for pathfinding
This commit is contained in:
@@ -16,8 +16,6 @@ typedef struct Game {
|
||||
f32 frameDuration;
|
||||
Vector2 targetPos;
|
||||
ecs_entity_t entity;
|
||||
Path path;
|
||||
Position waypoints[128];
|
||||
struct {
|
||||
int building;
|
||||
Vector2 mouseDown;
|
||||
@@ -30,6 +28,9 @@ typedef struct Game {
|
||||
i64 gold;
|
||||
i64 pop;
|
||||
} resources;
|
||||
struct {
|
||||
BzObjectPool *pathData;
|
||||
} pools;
|
||||
f32 elapsed;
|
||||
} Game;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user