mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 04:27:42 +00:00
Initial InGameGuiManager imps
This commit is contained in:
118
Runtime/MP1/CInGameGuiManager.hpp
Normal file
118
Runtime/MP1/CInGameGuiManager.hpp
Normal file
@@ -0,0 +1,118 @@
|
||||
#ifndef __URDE_CINGAMEGUIMANAGER_HPP__
|
||||
#define __URDE_CINGAMEGUIMANAGER_HPP__
|
||||
|
||||
#include "CToken.hpp"
|
||||
#include "CRandom16.hpp"
|
||||
#include "CPlayerVisor.hpp"
|
||||
#include "CFaceplateDecoration.hpp"
|
||||
#include "CSamusHud.hpp"
|
||||
#include "CPauseScreen.hpp"
|
||||
#include "CSamusFaceReflection.hpp"
|
||||
#include "CMessageScreen.hpp"
|
||||
#include "CSaveGameScreen.hpp"
|
||||
#include "Camera/CCameraFilter.hpp"
|
||||
#include "CStateManager.hpp"
|
||||
#include "DataSpec/DNACommon/Tweaks/ITweakGui.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
class CStateManager;
|
||||
class CArchitectureQueue;
|
||||
class CDependencyGroup;
|
||||
class CModelData;
|
||||
class CActorLights;
|
||||
class CGuiModel;
|
||||
class CGuiCamera;
|
||||
class CAutoMapper;
|
||||
|
||||
namespace MP1
|
||||
{
|
||||
|
||||
enum class EInGameGuiState
|
||||
{
|
||||
Zero,
|
||||
One
|
||||
};
|
||||
|
||||
class CInGameGuiManager
|
||||
{
|
||||
enum class ELoadPhase
|
||||
{
|
||||
LoadDepsGroup = 0,
|
||||
PreLoadDeps,
|
||||
LoadDeps,
|
||||
Done
|
||||
};
|
||||
|
||||
struct SGuiProfileInfo
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
TLockedToken<CDependencyGroup> x0_iggmPreLoad;
|
||||
std::vector<CToken> x8_preLoadDeps;
|
||||
ELoadPhase x18_loadPhase = ELoadPhase::LoadDepsGroup;
|
||||
CRandom16 x1c_rand;
|
||||
CFaceplateDecoration x20_faceplateDecor;
|
||||
std::unique_ptr<CPlayerVisor> x30_playerVisor;
|
||||
std::unique_ptr<CSamusHud> x34_samusHud;
|
||||
std::unique_ptr<CAutoMapper> x38_autoMapper;
|
||||
std::unique_ptr<CPauseScreen> x3c_pauseScreen;
|
||||
std::unique_ptr<CSamusFaceReflection> x40_samusReflection;
|
||||
std::unique_ptr<CMessageScreen> x44_;
|
||||
u32 x48_ = 0;
|
||||
std::unique_ptr<CSaveGameScreen> x4c_saveUI;
|
||||
TLockedToken<CTexture> x50_deathDot;
|
||||
std::vector<TLockedToken<CDependencyGroup>> x5c_pauseScreenDGRPs;
|
||||
std::vector<TLockedToken<CDependencyGroup>> xc8_inGameGuiDGRPs;
|
||||
std::vector<u32> xd8_;
|
||||
std::vector<CToken> xe8_;
|
||||
CCameraFilterPass xf8_camFilter;
|
||||
std::list<CToken> x12c_;
|
||||
u32 x140_ = 0;
|
||||
CGuiWidget* x144_basewidget_automapper = nullptr;
|
||||
CGuiModel* x148_model_automapper = nullptr;
|
||||
CGuiCamera* x14c_basehud_camera = nullptr;
|
||||
CGuiWidget* x150_basewidget_functional = nullptr;
|
||||
zeus::CQuaternion x154_automapperRotate;
|
||||
zeus::CVector3f x164_automapperOffset;
|
||||
zeus::CQuaternion x170_camRotate;
|
||||
zeus::CVector3f x180_camOffset;
|
||||
zeus::CTransform x18c_camXf;
|
||||
u32 x1bc_ = 0;
|
||||
u32 x1c0_ = 0;
|
||||
SOnScreenTex x1c4_onScreenTex;
|
||||
float x1d8_ = 0.f;
|
||||
TLockedToken<CTexture> x1dc_onScreenTexTok; // Used to be heap-allocated
|
||||
DataSpec::ITweakGui::EHelmetVisMode x1e0_helmetVisMode;
|
||||
bool x1e4_enableTargetingManager;
|
||||
bool x1e8_enableAutoMapper;
|
||||
DataSpec::ITweakGui::EHudVisMode x1ec_hudVisMode;
|
||||
u32 x1f0_enablePlayerVisor;
|
||||
float x1f4_player74c;
|
||||
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
bool x1f8_24_ : 1;
|
||||
bool x1f8_25_ : 1;
|
||||
bool x1f8_26_ : 1;
|
||||
bool x1f8_27_ : 1;
|
||||
};
|
||||
u32 _dummy = 0;
|
||||
};
|
||||
|
||||
static std::vector<TLockedToken<CDependencyGroup>> LockPauseScreenDependencies();
|
||||
bool CheckDGRPLoadComplete() const;
|
||||
void BeginStateTransition(EInGameGuiState state, CStateManager& stateMgr);
|
||||
|
||||
public:
|
||||
CInGameGuiManager(CStateManager& stateMgr, CArchitectureQueue& archQueue);
|
||||
bool CheckLoadComplete(CStateManager& stateMgr);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __URDE_CINGAMEGUIMANAGER_HPP__
|
||||
Reference in New Issue
Block a user