Basic wood chopping

This commit is contained in:
2023-12-10 11:08:40 +01:00
parent b410867902
commit 11832ec1cc
10 changed files with 224 additions and 45 deletions

View File

@@ -5,6 +5,11 @@
#include "components.h"
typedef struct Game Game;
void entityClearTasks(const ecs_entity_t entity);
bool entitySetPath(const ecs_entity_t entity, const Vector2 target, Game *game);
/**********************************
* Entity Systems
@@ -12,8 +17,7 @@
/* Observer (for unregistering collision)
* 0: Game (singleton)
* 1: Position
* 3: SpatialGridID
* 1: SpatialGridID
*/
void entitySpatialRemove(ecs_iter_t *it);
@@ -63,6 +67,14 @@ void entityMoveToTarget(ecs_iter_t *it);
*/
void entityFollowPath(ecs_iter_t *it);
/*
* 0: Game (for pathfinding)
* 1: Position
* 2: Rotation
* 3: HarvestTask
*/
void entityHarvestTaskSystem(ecs_iter_t *it);
/*
* 1: Velocity
* 2: AnimationType