metaforce/Runtime/MP1/CMFGame.cpp

32 lines
615 B
C++
Raw Normal View History

2015-08-22 01:58:41 +00:00
#include "CMFGame.hpp"
#include "CArchitectureQueue.hpp"
#include "GameGlobalObjects.hpp"
#include "CGameState.hpp"
namespace Retro
{
2015-08-27 00:23:46 +00:00
namespace MP1
{
2015-08-22 01:58:41 +00:00
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
{
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);
g_GameState->WorldTransitionManager();
}
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
{
g_GameState->WorldTransitionManager().Draw();
}
}
2015-08-27 00:23:46 +00:00
}