2016-04-17 02:50:45 +00:00
|
|
|
#ifndef __URDE_CENVFXMANAGER_HPP__
|
|
|
|
#define __URDE_CENVFXMANAGER_HPP__
|
|
|
|
|
2016-10-02 03:06:20 +00:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "CToken.hpp"
|
|
|
|
#include "zeus/CAABox.hpp"
|
|
|
|
|
2016-04-17 02:50:45 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
2016-08-15 01:19:04 +00:00
|
|
|
class CStateManager;
|
2016-10-02 03:06:20 +00:00
|
|
|
class CTexture;
|
2016-04-17 02:50:45 +00:00
|
|
|
|
2016-04-23 18:04:49 +00:00
|
|
|
enum class EEnvFxType
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Rain,
|
|
|
|
Snow
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class EPhazonType
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Blue,
|
|
|
|
Orange
|
|
|
|
};
|
|
|
|
|
2016-04-17 02:50:45 +00:00
|
|
|
class CEnvFxManager
|
|
|
|
{
|
2016-10-02 03:06:20 +00:00
|
|
|
zeus::CAABox x0_ = zeus::CAABox(-63.5, 63.5);
|
|
|
|
zeus::CVector3f x18_ = zeus::CVector3f::skZero;
|
|
|
|
u8 x24_ = 0;
|
|
|
|
float x28_ = 0.f;
|
|
|
|
u32 x2c_ = -1;
|
|
|
|
float x30_ = 0.f;
|
|
|
|
float x34_fxDensity = 0.f;
|
|
|
|
float x38_ = 0.f;
|
|
|
|
u8 x3c = 0;
|
|
|
|
|
|
|
|
void SetupSnowTevs();
|
|
|
|
void SetupRainTevs();
|
2016-08-15 01:19:04 +00:00
|
|
|
public:
|
2016-10-02 03:06:20 +00:00
|
|
|
CEnvFxManager();
|
2016-08-15 01:19:04 +00:00
|
|
|
void AsyncLoadResources(CStateManager& mgr);
|
2016-10-02 03:06:20 +00:00
|
|
|
|
|
|
|
void Update(float, float, EEnvFxType, const CStateManager&);
|
|
|
|
void SetFxDensity(s32, float);
|
|
|
|
void MoveWrapCells(s32, s32);
|
|
|
|
void GetParticleBoundsToWorldScale() const;
|
|
|
|
|
2016-04-17 02:50:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CENVFXMANAGER_HPP__
|