mirror of
https://github.com/AxioDL/PrimeAPI.git
synced 2026-03-30 11:38:46 -07:00
34 lines
558 B
C++
34 lines
558 B
C++
#ifndef CWORLDSTATE_HPP
|
|
#define CWORLDSTATE_HPP
|
|
|
|
#include <PrimeAPI.h>
|
|
#include <rstl/vector.h>
|
|
|
|
class CWorldLayers
|
|
{
|
|
public:
|
|
struct Area
|
|
{
|
|
uint32 mStartNameIdx;
|
|
uint32 mLayerCount;
|
|
uint64 mLayerBits;
|
|
};
|
|
};
|
|
|
|
class CWorldLayerState
|
|
{
|
|
public:
|
|
rstl::vector<CWorldLayers::Area> areaLayers;
|
|
};
|
|
|
|
class CWorldState
|
|
{
|
|
public:
|
|
uint32 x0_worldAssetId;
|
|
TAreaId x4_areaId;
|
|
|
|
inline CWorldLayerState* GetWorldLayerState() const { return **GetField<CWorldLayerState**>(this, 0x14); }
|
|
void SetDesiredAreaAssetId(uint assetId);
|
|
};
|
|
|
|
#endif // CWORLDSTATE_HPP
|