2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-03-30 22:36:18 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/World/CRipple.hpp"
|
2017-03-30 22:36:18 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
|
|
|
|
class CRippleManager {
|
|
|
|
float x0_maxTimeFalloff = 0.f;
|
|
|
|
std::vector<CRipple> x4_ripples;
|
|
|
|
float x14_alpha;
|
2017-03-30 22:36:18 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CRippleManager(int maxRipples, float alpha);
|
|
|
|
void Init(int maxRipples);
|
2020-03-25 08:22:32 +00:00
|
|
|
std::vector<CRipple>& GetRipples() { return x4_ripples; }
|
2018-12-08 05:30:43 +00:00
|
|
|
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; }
|
2017-03-30 22:36:18 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
}; // namespace urde
|