#ifndef __URDE_CPARTICLEDATABASE_HPP__ #define __URDE_CPARTICLEDATABASE_HPP__ #include "CCharacterInfo.hpp" #include "CParticleGenInfo.hpp" #include "zeus/CFrustum.hpp" #include "CToken.hpp" #include namespace urde { class CPoseAsTransforms; class CCharLayoutInfo; class CGenDescription; class CSwooshDescription; class CElectricDescription; class CParticleDatabase { std::map>> x0_particleDescs; std::map>> x14_swooshDescs; std::map>> x28_electricDescs; std::map> x3c_rendererDrawLoop; std::map> x50_firstDrawLoop; std::map> x64_lastDrawLoop; std::map> x78_rendererDraw; std::map> x8c_firstDraw; std::map> xa0_lastDraw; bool xb4_24_active : 1; bool xb4_25_drawingEnds : 1; static void SetModulationColorAllActiveEffectsForParticleDB(const zeus::CColor& color, std::map>& map); static void SuspendAllActiveEffectsForParticleDB(CStateManager& mgr, std::map>& map); static void DeleteAllLightsForParticleDB(CStateManager& mgr, std::map>& map); static void RenderParticleGenMap(const std::map>& map); static void RenderParticleGenMapMasked(const std::map>& map, int mask, int target); static void AddToRendererClippedParticleGenMap(const std::map>& map, const zeus::CFrustum& frustum); static void AddToRendererClippedParticleGenMapMasked(const std::map>& map, const zeus::CFrustum& frustum, int mask, int target); static void UpdateParticleGenDB(float dt, const CPoseAsTransforms& pose, const CCharLayoutInfo& charInfo, const zeus::CTransform& xf, const zeus::CVector3f& vec, CStateManager& stateMgr, std::map>& map, bool deleteIfDone); public: CParticleDatabase(); void CacheParticleDesc(const CCharacterInfo::CParticleResData& desc); void SetModulationColorAllActiveEffects(const zeus::CColor& color); void SuspendAllActiveEffects(CStateManager& stateMgr); void DeleteAllLights(CStateManager& stateMgr); void Update(float dt, const CPoseAsTransforms& pose, const CCharLayoutInfo& charInfo, const zeus::CTransform& xf, const zeus::CVector3f& scale, CStateManager& stateMgr); void RenderSystemsToBeDrawnLastMasked(int mask, int target) const; void RenderSystemsToBeDrawnLast() const; void RenderSystemsToBeDrawnFirstMasked(int mask, int target) const; void RenderSystemsToBeDrawnFirst() const; void AddToRendererClippedMasked(const zeus::CFrustum& frustum, int mask, int target) const; void AddToRendererClipped(const zeus::CFrustum& frustum) const; CParticleGenInfo* GetParticleEffect(const std::string& name) const; void SetParticleEffectState(const std::string& name, bool active, CStateManager& mgr); void SetCEXTValue(const std::string& name, int idx, float value); void AddAuxiliaryParticleEffect(const std::string& name, int flags, const CAuxiliaryParticleData& data, const zeus::CVector3f& scale, CStateManager& mgr, TAreaId aid, int lightIdx); void AddParticleEffect(const std::string& name, int flags, const CParticleData& data, const zeus::CVector3f& scale, CStateManager& mgr, TAreaId aid, bool oneShot, int lightIdx); void InsertParticleGen(bool oneShot, int flags, const std::string& name, std::unique_ptr&& gen); }; } #endif // __URDE_CPARTICLEDATABASE_HPP__