2022-08-09 23:03:51 +00:00
|
|
|
#ifndef _CSTATEMANAGER_HPP
|
|
|
|
#define _CSTATEMANAGER_HPP
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-08-13 01:26:00 +00:00
|
|
|
#include "MetroidPrime/CEntityInfo.hpp"
|
|
|
|
#include "MetroidPrime/TGameTypes.hpp"
|
|
|
|
|
|
|
|
#include "rstl/auto_ptr.hpp"
|
|
|
|
#include "rstl/list.hpp"
|
|
|
|
#include "rstl/reserved_vector.hpp"
|
|
|
|
#include "rstl/single_ptr.hpp"
|
|
|
|
|
2022-08-13 02:48:34 +00:00
|
|
|
class CActorModelParticles;
|
|
|
|
class CCameraManager;
|
|
|
|
class CEnvFxManager;
|
|
|
|
class CFluidPlaneManager;
|
2022-08-13 01:26:00 +00:00
|
|
|
class CObjectList;
|
|
|
|
class CPlayer;
|
2022-08-13 02:48:34 +00:00
|
|
|
class CRumbleManager;
|
2022-08-13 01:26:00 +00:00
|
|
|
class CStateManagerContainer;
|
2022-08-13 02:48:34 +00:00
|
|
|
class CWeaponMgr;
|
|
|
|
class CWorld;
|
|
|
|
|
|
|
|
namespace SL {
|
|
|
|
class CSortedListManager;
|
|
|
|
} // namespace SL
|
2022-08-13 01:26:00 +00:00
|
|
|
|
2022-08-11 02:33:46 +00:00
|
|
|
class CStateManager {
|
|
|
|
public:
|
|
|
|
void SendScriptMsg(TUniqueId uid, TEditorId target, EScriptObjectMessage msg, EScriptObjectState state);
|
2022-08-13 01:26:00 +00:00
|
|
|
|
2022-08-13 02:48:34 +00:00
|
|
|
CCameraManager& GetCameraManager() { return *x870_cameraManager; }
|
|
|
|
|
2022-08-13 01:26:00 +00:00
|
|
|
private:
|
|
|
|
u16 x0_nextFreeIndex;
|
|
|
|
rstl::reserved_vector< u16, 1024 > x8_objectIndexArray;
|
|
|
|
rstl::reserved_vector< rstl::auto_ptr< CObjectList >, 8 > x808_objectLists;
|
|
|
|
CPlayer* x84c_player;
|
|
|
|
rstl::single_ptr< CWorld > x850_world;
|
|
|
|
rstl::list< rstl::reserved_vector< TUniqueId, 32 > > x854_graveyard;
|
|
|
|
rstl::single_ptr< CStateManagerContainer > x86c_stateManagerContainer;
|
2022-08-13 02:48:34 +00:00
|
|
|
CCameraManager* x870_cameraManager;
|
|
|
|
SL::CSortedListManager* x874_sortedListManager;
|
|
|
|
CWeaponMgr* x878_weaponMgr;
|
|
|
|
CFluidPlaneManager* x87c_fluidPlaneManager;
|
|
|
|
CEnvFxManager* x880_envFxManager;
|
|
|
|
rstl::auto_ptr< CActorModelParticles > x884_actorModelParticles;
|
|
|
|
CRumbleManager* x88c_rumbleManager;
|
2022-08-11 02:33:46 +00:00
|
|
|
};
|
2022-08-09 23:03:51 +00:00
|
|
|
|
|
|
|
#endif
|