2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 15:51:22 +00:00
metaforce/Runtime/World/CRippleManager.hpp
Lioncash c5c888daa6 CRippleManager: Rename Ripples() to GetRipples()
Allows const overloading to work and prevents compilation errors from
occurring if the constness ever changes.
2020-03-25 04:22:34 -04:00

30 lines
820 B
C++

#pragma once
#include <vector>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/World/CRipple.hpp"
namespace urde {
class CRippleManager {
float x0_maxTimeFalloff = 0.f;
std::vector<CRipple> x4_ripples;
float x14_alpha;
public:
CRippleManager(int maxRipples, float alpha);
void Init(int maxRipples);
std::vector<CRipple>& GetRipples() { return x4_ripples; }
const std::vector<CRipple>& GetRipples() const { return x4_ripples; }
void Update(float dt);
float GetLastRippleDeltaTime(TUniqueId rippler) const;
void AddRipple(const CRipple& ripple);
void SetMaxTimeFalloff(float time) { x0_maxTimeFalloff = time; }
float GetMaxTimeFalloff() const { return x0_maxTimeFalloff; }
void SetAlpha(float a) { x14_alpha = a; }
float GetAlpha() const { return x14_alpha; }
};
}; // namespace urde