Properly handle map collisions when placing/destroying buildings
This commit is contained in:
@@ -189,6 +189,12 @@ typedef struct Unit {
|
||||
f32 deceleration;
|
||||
} Unit;
|
||||
extern ECS_COMPONENT_DECLARE(Unit);
|
||||
typedef struct Building {
|
||||
BuildingType type;
|
||||
Vec2i pos;
|
||||
Vec2i size;
|
||||
} Building;
|
||||
extern ECS_COMPONENT_DECLARE(Building);
|
||||
extern ECS_TAG_DECLARE(Storage);
|
||||
extern ECS_TAG_DECLARE(Harvestable);
|
||||
extern ECS_TAG_DECLARE(Buildable);
|
||||
|
||||
Reference in New Issue
Block a user