2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-25 05:03:38 +00:00
|
|
|
|
2017-02-12 03:17:18 +00:00
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2016-04-25 05:03:38 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
|
|
|
|
class CHealthInfo {
|
|
|
|
float x0_health;
|
|
|
|
float x4_knockbackResistance;
|
2016-04-25 05:03:38 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CHealthInfo(float hp) : x0_health(hp), x4_knockbackResistance(0.f) {}
|
2016-06-30 19:33:38 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CHealthInfo(float hp, float resist) : x0_health(hp), x4_knockbackResistance(resist) {}
|
2016-06-30 19:33:38 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CHealthInfo(CInputStream& in);
|
|
|
|
void SetHP(float hp) { x0_health = hp; }
|
|
|
|
float GetHP() const { return x0_health; }
|
|
|
|
float GetKnockbackResistance() const { return x4_knockbackResistance; }
|
2018-12-31 08:37:52 +00:00
|
|
|
void SetKnockbackResistance(float r) { x4_knockbackResistance = r; }
|
2016-04-25 05:03:38 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|