Add hp, Add attack collision detection, Add destroy on death

This commit was merged in pull request #3.
This commit is contained in:
2023-09-26 22:34:42 +10:00
committed by doylet
parent 589d56dd82
commit 5e441e1a13
3 changed files with 34 additions and 0 deletions
+2
View File
@@ -15,6 +15,7 @@ enum FP_GameEntityFlag
FP_GameEntityFlag_MobSpawner = 1 << 7,
FP_GameEntityFlag_MobSpawnerWaypoint = 1 << 8,
FP_GameEntityFlag_AggrosWhenNearTerry = 1 << 9,
FP_GameEntityFlag_Attackable = 1 << 9,
};
enum FP_GameShapeType
@@ -118,6 +119,7 @@ struct FP_GameEntity
uint64_t spawn_cap;
uint64_t flags;
uint64_t hp;
FP_GameDirection direction;
Dqn_V2 local_pos;
Dqn_f64 alive_time_s;