Implement warehouse and granary

This commit is contained in:
2024-02-09 10:14:54 +01:00
parent ababd53846
commit 14f7e2b56c
6 changed files with 38 additions and 10 deletions

View File

@@ -287,7 +287,10 @@ typedef struct Building {
Vec2i pos;
Vec2i size;
} Building;
extern ECS_TAG_DECLARE(Storage);
typedef struct Storage {
bool stores[RES_COUNT];
} Storage;
extern ECS_COMPONENT_DECLARE(Storage);
extern ECS_COMPONENT_DECLARE(Building);
typedef struct Harvestable {
i32 harvestLimit;