prime/include/MetroidPrime/Player/CPlayerEnergyDrain.hpp
Luke Street 7ca3a1c0bb Replace int types in Retro code
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
2022-10-09 01:37:23 -04:00

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