2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 21:51:22 +00:00
metaforce/Runtime/CStaticInterference.hpp
2018-12-07 19:30:43 -10:00

27 lines
522 B
C++

#pragma once
#include <vector>
#include "RetroTypes.hpp"
namespace urde {
class CStateManager;
struct CStaticInterferenceSource {
TUniqueId id;
float magnitude;
float timeLeft;
};
class CStaticInterference {
std::vector<CStaticInterferenceSource> m_sources;
public:
CStaticInterference(int sourceCount);
void RemoveSource(TUniqueId id);
void Update(CStateManager&, float dt);
float GetTotalInterference() const;
void AddSource(TUniqueId id, float magnitude, float duration);
};
} // namespace urde