2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CPARTICLEDATABASE
|
|
|
|
#define _CPARTICLEDATABASE
|
2022-08-14 18:38:41 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Kyoto/IObjectStore.hpp"
|
|
|
|
#include "Kyoto/TToken.hpp"
|
|
|
|
|
|
|
|
#include "rstl/auto_ptr.hpp"
|
|
|
|
#include "rstl/map.hpp"
|
|
|
|
#include "rstl/rc_ptr.hpp"
|
|
|
|
#include "rstl/string.hpp"
|
|
|
|
|
|
|
|
class CElectricDescription;
|
|
|
|
class CGenDescription;
|
|
|
|
class CParticleGenInfo;
|
|
|
|
class CStateManager;
|
|
|
|
class CSwooshDescription;
|
|
|
|
|
|
|
|
class CParticleDatabase {
|
|
|
|
public:
|
|
|
|
typedef rstl::map< rstl::string, rstl::auto_ptr< CParticleGenInfo > > DrawMap;
|
|
|
|
|
|
|
|
void SetParticleEffectState(const rstl::string& name, bool active, CStateManager& mgr);
|
2022-09-13 04:26:54 +00:00
|
|
|
void RenderSystemsToBeDrawnFirst() const;
|
|
|
|
void RenderSystemsToBeDrawnLast() const;
|
2023-10-19 22:51:57 +00:00
|
|
|
void DeleteAllLights(CStateManager& mgr);
|
2022-09-13 04:26:54 +00:00
|
|
|
|
|
|
|
bool AreAnySystemsDrawnWithModel() const { return xb4_25_anySystemsDrawnWithModel; }
|
2022-08-14 18:38:41 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
rstl::map< CAssetId, rstl::rc_ptr< TLockedToken< CGenDescription > > > x0_particleDescs;
|
|
|
|
rstl::map< CAssetId, rstl::rc_ptr< TLockedToken< CSwooshDescription > > > x14_swooshDescs;
|
|
|
|
rstl::map< CAssetId, rstl::rc_ptr< TLockedToken< CElectricDescription > > > x28_electricDescs;
|
|
|
|
DrawMap x3c_rendererDrawLoop;
|
|
|
|
DrawMap x50_firstDrawLoop;
|
|
|
|
DrawMap x64_lastDrawLoop;
|
|
|
|
DrawMap x78_rendererDraw;
|
|
|
|
DrawMap x8c_firstDraw;
|
|
|
|
DrawMap xa0_lastDraw;
|
|
|
|
bool xb4_24_updatesEnabled : 1;
|
|
|
|
bool xb4_25_anySystemsDrawnWithModel : 1;
|
|
|
|
};
|
2022-10-03 11:55:03 +00:00
|
|
|
CHECK_SIZEOF(CParticleDatabase, 0xb8)
|
2022-08-14 18:38:41 +00:00
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CPARTICLEDATABASE
|