Add hp, Add attack collision detection, Add destroy on death
This commit was merged in pull request #3.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user