2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 23:11:20 +00:00
metaforce/Runtime/CStaticInterference.hpp
Lioncash 241a66dc0a General: Make use of explicit constructors where applicable
Gets rid of potential error prone implicitly constructing constructors.
2020-03-27 06:00:17 -04:00

27 lines
539 B
C++

#pragma once
#include <vector>
#include "Runtime/RetroTypes.hpp"
namespace urde {
class CStateManager;
struct CStaticInterferenceSource {
TUniqueId id;
float magnitude;
float timeLeft;
};
class CStaticInterference {
std::vector<CStaticInterferenceSource> m_sources;
public:
explicit 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