2015-08-22 01:58:41 +00:00
|
|
|
#include "CMFGame.hpp"
|
|
|
|
#include "CArchitectureQueue.hpp"
|
|
|
|
#include "GameGlobalObjects.hpp"
|
|
|
|
#include "CGameState.hpp"
|
2016-08-15 20:58:07 +00:00
|
|
|
#include "MP1.hpp"
|
2015-08-22 01:58:41 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-22 01:58:41 +00:00
|
|
|
{
|
2015-08-27 00:23:46 +00:00
|
|
|
namespace MP1
|
|
|
|
{
|
2015-08-22 01:58:41 +00:00
|
|
|
|
2016-08-15 20:58:07 +00:00
|
|
|
CMFGameLoader::CMFGameLoader()
|
|
|
|
: CMFGameLoaderBase("CMFGameLoader")
|
|
|
|
{
|
|
|
|
switch (g_Main->GetFlowState())
|
|
|
|
{
|
|
|
|
case CMain::FlowState::Five:
|
|
|
|
case CMain::FlowState::Six:
|
|
|
|
{
|
|
|
|
ResId mlvlId = g_GameState->CurrentWorldAssetId();
|
|
|
|
//g_GameState->WorldTransitionManager()->
|
|
|
|
//g_MemoryCardSys->
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-26 01:34:56 +00:00
|
|
|
CIOWin::EMessageReturn CMFGameLoader::OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue)
|
2015-08-22 01:58:41 +00:00
|
|
|
{
|
2016-08-16 22:49:19 +00:00
|
|
|
std::shared_ptr<CWorldTransManager> wtMgr = g_GameState->GetWorldTransitionManager();
|
2016-08-15 20:58:07 +00:00
|
|
|
|
2015-08-22 01:58:41 +00:00
|
|
|
switch (msg.GetType())
|
|
|
|
{
|
2015-11-21 01:16:07 +00:00
|
|
|
case EArchMsgType::TimerTick:
|
2015-08-22 01:58:41 +00:00
|
|
|
{
|
|
|
|
const CArchMsgParmReal32& tick = MakeMsg::GetParmTimerTick(msg);
|
|
|
|
}
|
|
|
|
default: break;
|
|
|
|
}
|
2015-11-21 01:16:07 +00:00
|
|
|
return EMessageReturn::Exit;
|
2015-08-22 01:58:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CMFGameLoader::Draw() const
|
|
|
|
{
|
2016-08-16 22:49:19 +00:00
|
|
|
g_GameState->GetWorldTransitionManager()->Draw();
|
2015-08-22 01:58:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-08-27 00:23:46 +00:00
|
|
|
}
|