2016-02-13 09:02:47 +00:00
|
|
|
#ifndef __PSHAG_CDECALMANAGER_HPP__
|
|
|
|
#define __PSHAG_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-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 CDecal
|
2015-08-18 05:54:43 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-04-07 07:10:08 +00:00
|
|
|
class CQuadDecal
|
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;
|
|
|
|
static TResId m_LastDecalCreatedAssetId;
|
|
|
|
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-02-13 09:02:47 +00:00
|
|
|
#endif // __PSHAG_CDECALMANAGER_HPP__
|