mirror of https://github.com/AxioDL/metaforce.git
24 lines
599 B
C++
24 lines
599 B
C++
#pragma once
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
namespace urde {
|
|
|
|
class CHealthInfo {
|
|
float x0_health;
|
|
float x4_knockbackResistance;
|
|
|
|
public:
|
|
CHealthInfo(float hp) : x0_health(hp), x4_knockbackResistance(0.f) {}
|
|
|
|
CHealthInfo(float hp, float resist) : x0_health(hp), x4_knockbackResistance(resist) {}
|
|
|
|
CHealthInfo(CInputStream& in);
|
|
void SetHP(float hp) { x0_health = hp; }
|
|
float GetHP() const { return x0_health; }
|
|
float GetKnockbackResistance() const { return x4_knockbackResistance; }
|
|
void SetKnockbackResistance(float r) { x4_knockbackResistance = r; }
|
|
};
|
|
|
|
} // namespace urde
|