metaforce/Runtime/CMainFlowBase.hpp

31 lines
660 B
C++
Raw Normal View History

2015-08-27 00:23:46 +00:00
#ifndef __RETRO_CMAINFLOWBASE_HPP__
#define __RETRO_CMAINFLOWBASE_HPP__
#include "CIOWin.hpp"
namespace Retro
{
2015-11-21 01:16:07 +00:00
enum class EClientFlowStates
2015-08-27 00:23:46 +00:00
{
2015-11-21 01:16:07 +00:00
Unspecified = -1,
FrontEnd = 7,
GameLoad = 13,
MoviePlay = 14
2015-08-27 00:23:46 +00:00
};
class CMainFlowBase : public CIOWin
{
protected:
EClientFlowStates x14_gameState;
public:
CMainFlowBase(const char* name) : CIOWin(name) {}
EMessageReturn OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue);
2015-08-27 00:27:32 +00:00
virtual void AdvanceGameState(CArchitectureQueue& queue)=0;
2015-08-27 00:23:46 +00:00
virtual void SetGameState(EClientFlowStates state, CArchitectureQueue& queue)=0;
};
}
#endif // __RETRO_CMAINFLOWBASE_HPP__