mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-13 05:26:09 +00:00
Add CPlayerState (#5)
* Start CPlayerState
* CPlayerState::CalculateHealth symbol rename
* Add inline constructor for CHealthInfo
* Add skeleton for the rest of CPlayerState
* Match CPlayerState::DecrPickUp
* Match more methods in CPlayerState
* Run formatting
* Fix function order
* Improving the constants
Former-commit-id: 1e30daa096
This commit is contained in:
committed by
GitHub
parent
ba75752e14
commit
bb86f3dc01
@@ -5,8 +5,9 @@
|
||||
|
||||
class CHealthInfo {
|
||||
public:
|
||||
CHealthInfo(f32 hp, f32 resist);
|
||||
// TODO
|
||||
CHealthInfo(f32 hp, f32 resist) : x0_health(hp), x4_knockbackResistance(resist) {}
|
||||
void SetHP(float hp) { x0_health = hp; }
|
||||
float GetHP() const { return x0_health; }
|
||||
|
||||
private:
|
||||
f32 x0_health;
|
||||
|
||||
Reference in New Issue
Block a user