mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 01:07:43 +00:00
New code style refactor
This commit is contained in:
@@ -3,27 +3,24 @@
|
||||
#include <vector>
|
||||
#include "RetroTypes.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
class CStateManager;
|
||||
|
||||
struct CStaticInterferenceSource
|
||||
{
|
||||
TUniqueId id;
|
||||
float magnitude;
|
||||
float timeLeft;
|
||||
struct CStaticInterferenceSource {
|
||||
TUniqueId id;
|
||||
float magnitude;
|
||||
float timeLeft;
|
||||
};
|
||||
|
||||
class CStaticInterference
|
||||
{
|
||||
std::vector<CStaticInterferenceSource> m_sources;
|
||||
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);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user