Add actions
This commit is contained in:
@@ -8,9 +8,6 @@
|
||||
#include <math.h>
|
||||
#include <raymath.h>
|
||||
|
||||
void entityClearTasks(const ecs_entity_t entity) {
|
||||
ecs_remove(ECS, entity, HarvestTask);
|
||||
}
|
||||
bool entitySetPath(const ecs_entity_t entity, const Vector2 target, Game *game) {
|
||||
const Vector2 *pPath = ecs_get(ECS, entity, Position);
|
||||
BZ_ASSERT(pPath);
|
||||
@@ -217,6 +214,7 @@ static ecs_entity_t findNearestStorage(ResourceType type) {
|
||||
return closest;
|
||||
}
|
||||
|
||||
/*
|
||||
void entityHarvestTaskSystem(ecs_iter_t *it) {
|
||||
Game *game = ecs_singleton_get_mut(ECS, Game);
|
||||
|
||||
@@ -270,6 +268,7 @@ void entityHarvestTaskSystem(ecs_iter_t *it) {
|
||||
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
void entityUpdateAnimationState(ecs_iter_t *it) {
|
||||
Velocity *velocity = ecs_field(it, Velocity, 1);
|
||||
|
||||
Reference in New Issue
Block a user