2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CMAINFLOWBASE_HPP__
|
|
|
|
#define __URDE_CMAINFLOWBASE_HPP__
|
2015-08-27 00:23:46 +00:00
|
|
|
|
|
|
|
#include "CIOWin.hpp"
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-27 00:23:46 +00:00
|
|
|
{
|
|
|
|
|
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,
|
2016-09-25 01:58:20 +00:00
|
|
|
StateLoad = 8,
|
2015-11-21 01:16:07 +00:00
|
|
|
GameLoad = 13,
|
|
|
|
MoviePlay = 14
|
2015-08-27 00:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CMainFlowBase : public CIOWin
|
|
|
|
{
|
|
|
|
protected:
|
2016-09-16 20:18:03 +00:00
|
|
|
EClientFlowStates x14_gameState = EClientFlowStates::Unspecified;
|
2015-08-27 00:23:46 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CMAINFLOWBASE_HPP__
|