prime/include/MetroidPrime/Player/CStaticInterference.hpp

32 lines
624 B
C++
Raw Normal View History

#ifndef _CSTATICINTERFERENCE
#define _CSTATICINTERFERENCE
#include "types.h"
#include "MetroidPrime/TGameTypes.hpp"
#include "rstl/vector.hpp"
struct CStaticInterferenceSource {
TUniqueId x0_id;
float x4_magnitude;
float x8_timeLeft;
};
class CStateManager;
class CStaticInterference {
public:
2022-10-04 00:00:46 +00:00
CStaticInterference(int sourceCount);
void AddSource(TUniqueId id, float magnitude, float duration);
void RemoveSource(TUniqueId id);
void Update(CStateManager&, float dt);
float GetTotalInterference() const;
private:
rstl::vector< CStaticInterferenceSource > sources;
};
#endif // _CSTATICINTERFERENCE