mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-16 03:45:52 +00:00
Retro seemingly avoided using the Dolphin typedefs in most places, opting to use int/uint instead. This likely means they didn't use u8/s8/u16/s16/etc either. Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
20 lines
467 B
C++
20 lines
467 B
C++
#ifndef _CHEALTHINFO
|
|
#define _CHEALTHINFO
|
|
|
|
#include "types.h"
|
|
|
|
class CHealthInfo {
|
|
public:
|
|
CHealthInfo(float hp, float resist) : x0_health(hp), x4_knockbackResistance(resist) {}
|
|
void SetHP(float hp) { x0_health = hp; }
|
|
void SetKnockbackResistance(float resist) { x4_knockbackResistance = resist; }
|
|
float GetHP() const { return x0_health; }
|
|
|
|
private:
|
|
float x0_health;
|
|
float x4_knockbackResistance;
|
|
};
|
|
CHECK_SIZEOF(CHealthInfo, 0x8)
|
|
|
|
#endif // _CHEALTHINFO
|