Add health

This commit is contained in:
2024-02-07 16:12:45 +01:00
parent eb768fa968
commit d6466b8f55
7 changed files with 72 additions and 1 deletions

View File

@@ -214,6 +214,13 @@ typedef struct ConsumePopCapacity {
} ConsumePopCapacity;
extern ECS_COMPONENT_DECLARE(ConsumePopCapacity);
typedef struct Health {
f32 startHP;
f32 hp;
f32 lastChanged;
} Health;
extern ECS_COMPONENT_DECLARE(Health);
// Worker can:
// - Harvest
// - Build