Implement harvest worker AI

This commit is contained in:
2023-12-17 14:20:13 +01:00
parent 5564df4768
commit 33b28b620d
14 changed files with 338 additions and 40 deletions

View File

@@ -7,6 +7,10 @@
typedef struct Game Game;
/**********************************
* Utils
**********************************/
bool entitySetPath(const ecs_entity_t entity, const Vector2 target, Game *game);
/**********************************
@@ -17,7 +21,20 @@ bool entitySetPath(const ecs_entity_t entity, const Vector2 target, Game *game);
* 0: Game (singleton)
* 1: UnitAction
*/
void updateUnitActions(ecs_iter_t *it);
void handleUnitActionsSystem(ecs_iter_t *it);
/*
* 0: Game (singleton)
* 1: UnitAI
* 2: UnitAction
*/
void updateUnitAISystem(ecs_iter_t *it);
/*
* 0: Game (singleton)
* 1: UnitAction
*/
void updateUnitActionsSystem(ecs_iter_t *it);
/**********************************