mirror of
				https://github.com/AxioDL/metaforce.git
				synced 2025-10-27 15:30:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			617 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			617 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include "Runtime/RetroTypes.hpp"
 | |
| 
 | |
| namespace urde {
 | |
| 
 | |
| class CHealthInfo {
 | |
|   float x0_health;
 | |
|   float x4_knockbackResistance;
 | |
| 
 | |
| public:
 | |
|   explicit CHealthInfo(float hp) : x0_health(hp), x4_knockbackResistance(0.f) {}
 | |
| 
 | |
|   CHealthInfo(float hp, float resist) : x0_health(hp), x4_knockbackResistance(resist) {}
 | |
| 
 | |
|   explicit 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
 |