metaforce/Runtime/CMainFlowBase.hpp

32 lines
705 B
C++
Raw Normal View History

2016-04-12 23:07:23 -07:00
#ifndef __URDE_CMAINFLOWBASE_HPP__
#define __URDE_CMAINFLOWBASE_HPP__
2015-08-26 17:23:46 -07:00
#include "CIOWin.hpp"
2016-03-04 15:04:53 -08:00
namespace urde
2015-08-26 17:23:46 -07:00
{
2015-11-20 17:16:07 -08:00
enum class EClientFlowStates
2015-08-26 17:23:46 -07:00
{
2015-11-20 17:16:07 -08:00
Unspecified = -1,
PreFrontEnd = 7,
FrontEnd = 8,
Game = 14,
GameExit = 15
2015-08-26 17:23:46 -07:00
};
class CMainFlowBase : public CIOWin
{
protected:
2016-09-16 13:18:03 -07:00
EClientFlowStates x14_gameState = EClientFlowStates::Unspecified;
2015-08-26 17:23:46 -07:00
public:
CMainFlowBase(const char* name) : CIOWin(name) {}
EMessageReturn OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue);
2015-08-26 17:27:32 -07:00
virtual void AdvanceGameState(CArchitectureQueue& queue)=0;
2015-08-26 17:23:46 -07:00
virtual void SetGameState(EClientFlowStates state, CArchitectureQueue& queue)=0;
};
}
2016-04-12 23:07:23 -07:00
#endif // __URDE_CMAINFLOWBASE_HPP__