Improve unit recruiting
This commit is contained in:
@@ -239,6 +239,18 @@ typedef struct Unit {
|
||||
EntityType unitType;
|
||||
} Unit;
|
||||
extern ECS_COMPONENT_DECLARE(Unit);
|
||||
#define BUILDING_MAX_RECRUIT_SLOTS 4
|
||||
typedef struct BuildingRecruitSlot {
|
||||
EntityType entityType;
|
||||
i32 numRecruiting;
|
||||
f32 recruitTime;
|
||||
f32 elapsed;
|
||||
} BuildingRecruitSlot;
|
||||
typedef struct BuildingRecruitInfo {
|
||||
BuildingRecruitSlot slots[BUILDING_MAX_RECRUIT_SLOTS];
|
||||
i32 numSlots;
|
||||
} BuildingRecruitInfo;
|
||||
extern ECS_COMPONENT_DECLARE(BuildingRecruitInfo);
|
||||
typedef struct Building {
|
||||
BuildingType type;
|
||||
Vec2i pos;
|
||||
|
||||
Reference in New Issue
Block a user