metaforce/Runtime/Particle/CDecalManager.hpp

36 lines
835 B
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CDECALMANAGER_HPP__
#define __URDE_CDECALMANAGER_HPP__
2015-08-18 05:54:43 +00:00
2016-04-07 07:10:08 +00:00
#include "RetroTypes.hpp"
#include "rstl.hpp"
#include "optional.hpp"
#include "CToken.hpp"
2016-08-04 22:24:28 +00:00
#include "CDecal.hpp"
2016-04-07 07:10:08 +00:00
2016-03-04 23:04:53 +00:00
namespace urde
2015-08-18 05:54:43 +00:00
{
2016-04-07 07:10:08 +00:00
class CDecalManager
{
struct SDecal
{
TAreaId m_areaId;
std::experimental::optional<CDecal> x60_decal;
SDecal() = default;
SDecal(std::experimental::optional<CDecal>&&, TAreaId);
};
static bool m_PoolInitialized;
static s32 m_FreeIndex;
static float m_DeltaTimeSinceLastDecalCreation;
static s32 m_LastDecalCreatedIndex;
2016-04-14 21:42:47 +00:00
static ResId m_LastDecalCreatedAssetId;
2016-04-07 07:10:08 +00:00
static rstl::reserved_vector<SDecal, 64> m_DecalPool;
static rstl::reserved_vector<s32, 64> m_ActiveIndexList;
public:
static void Initialize();
2015-08-18 05:54:43 +00:00
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CDECALMANAGER_HPP__