2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CHEALTHINFO
|
|
|
|
#define _CHEALTHINFO
|
2022-09-18 05:55:13 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
class CHealthInfo {
|
|
|
|
public:
|
2022-10-01 14:08:15 +00:00
|
|
|
CHealthInfo(f32 hp, f32 resist) : x0_health(hp), x4_knockbackResistance(resist) {}
|
|
|
|
void SetHP(float hp) { x0_health = hp; }
|
2022-10-04 13:29:05 +00:00
|
|
|
void SetKnockbackResistance(float resist) { x4_knockbackResistance = resist; }
|
2022-10-01 14:08:15 +00:00
|
|
|
float GetHP() const { return x0_health; }
|
2022-09-18 05:55:13 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
f32 x0_health;
|
|
|
|
f32 x4_knockbackResistance;
|
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CHealthInfo, 0x8)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CHEALTHINFO
|