metaforce/Runtime/MP1/CMFGame.hpp

68 lines
1.4 KiB
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CMFGAME_HPP__
#define __URDE_CMFGAME_HPP__
2015-08-27 00:23:46 +00:00
#include "CMFGameBase.hpp"
2017-02-12 03:17:18 +00:00
#include "CInGameGuiManager.hpp"
2015-08-27 00:23:46 +00:00
2016-03-04 23:04:53 +00:00
namespace urde
2015-08-27 00:23:46 +00:00
{
2016-08-15 20:58:07 +00:00
class CStateManager;
class CInGameGuiManager;
class CToken;
2015-08-27 00:23:46 +00:00
namespace MP1
{
class CMFGame : public CMFGameBase
{
std::shared_ptr<CStateManager> x14_stateManager;
std::shared_ptr<CInGameGuiManager> x18_guiManager;
u32 x1c_ = 0;
u32 x24_ = 0;
TUniqueId x28_ = kInvalidUniqueId;
union
{
struct
{
bool x2a_24_ : 1;
bool x2a_25_ : 1;
};
u8 _dummy = 0;
};
2015-08-27 00:23:46 +00:00
public:
CMFGame(const std::weak_ptr<CStateManager>& stateMgr, const std::weak_ptr<CInGameGuiManager>& guiMgr,
const CArchitectureQueue&);
2015-08-27 00:23:46 +00:00
CIOWin::EMessageReturn OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue);
void Draw() const;
};
class CMFGameLoader : public CMFGameLoaderBase
{
2016-08-15 20:58:07 +00:00
std::shared_ptr<CStateManager> x14_stateMgr;
std::shared_ptr<CInGameGuiManager> x18_guiMgr;
2017-02-12 03:17:18 +00:00
std::vector<CToken> x1c_loadList;
2016-08-15 20:58:07 +00:00
union
{
struct
{
2016-10-09 07:45:04 +00:00
bool x2c_24_initialized : 1;
2016-08-15 20:58:07 +00:00
bool x2c_25_ : 1;
};
u8 _dummy = 0;
};
2016-10-09 07:45:04 +00:00
void MakeLoadDependencyList();
2015-08-27 00:23:46 +00:00
public:
2016-08-15 20:58:07 +00:00
CMFGameLoader();
2015-08-27 00:23:46 +00:00
EMessageReturn OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue);
void Draw() const;
void Touch();
2015-08-27 00:23:46 +00:00
};
}
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CMFGAME_HPP__