Limit how many workers can harvest the same resource
This commit is contained in:
@@ -270,7 +270,11 @@ typedef struct Building {
|
||||
} Building;
|
||||
extern ECS_TAG_DECLARE(Storage);
|
||||
extern ECS_COMPONENT_DECLARE(Building);
|
||||
extern ECS_TAG_DECLARE(Harvestable);
|
||||
typedef struct Harvestable {
|
||||
i32 harvestLimit;
|
||||
i32 harvestCount;
|
||||
} Harvestable;
|
||||
extern ECS_COMPONENT_DECLARE(Harvestable);
|
||||
extern ECS_TAG_DECLARE(Buildable);
|
||||
extern ECS_TAG_DECLARE(Attackable);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user