mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-05-17 13:51:20 +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
30 lines
674 B
C++
30 lines
674 B
C++
#ifndef _CPLAYERENERGYDRAIN
|
|
#define _CPLAYERENERGYDRAIN
|
|
|
|
#include "types.h"
|
|
|
|
#include "MetroidPrime/TGameTypes.hpp"
|
|
|
|
#include "rstl/vector.hpp"
|
|
|
|
class CEnergyDrainSource {
|
|
public:
|
|
CEnergyDrainSource(TUniqueId src, float intensity);
|
|
TUniqueId GetEnergyDrainSourceId() const { return x0_source; }
|
|
void SetEnergyDrainIntensity(float in) { x4_intensity = in; }
|
|
float GetEnergyDrainIntensity() const { return x4_intensity; }
|
|
|
|
private:
|
|
TUniqueId x0_source;
|
|
float x4_intensity;
|
|
};
|
|
|
|
class CPlayerEnergyDrain {
|
|
private:
|
|
rstl::vector< CEnergyDrainSource > x0_sources;
|
|
float x10_energyDrainTime;
|
|
};
|
|
CHECK_SIZEOF(CPlayerEnergyDrain, 0x14)
|
|
|
|
#endif // _CPLAYERENERGYDRAIN
|