Implement warehouse and granary
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user