2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-08-27 00:23:46 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include "Runtime/CIOWin.hpp"
|
2015-08-27 00:23:46 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2015-08-27 00:23:46 +00:00
|
|
|
|
2021-06-03 23:47:04 +00:00
|
|
|
enum class EClientFlowStates {
|
|
|
|
Unspecified = -1,
|
|
|
|
None = 0,
|
|
|
|
WinBad = 1,
|
|
|
|
WinGood = 2,
|
|
|
|
WinBest = 3,
|
|
|
|
LoseGame = 4,
|
|
|
|
Default = 5,
|
|
|
|
StateSetter = 6,
|
|
|
|
PreFrontEnd = 7,
|
|
|
|
FrontEnd = 8,
|
|
|
|
Game = 14,
|
|
|
|
GameExit = 15
|
|
|
|
};
|
2015-08-27 00:23:46 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CMainFlowBase : public CIOWin {
|
2015-08-27 00:23:46 +00:00
|
|
|
protected:
|
2018-12-08 05:30:43 +00:00
|
|
|
EClientFlowStates x14_gameState = EClientFlowStates::Unspecified;
|
|
|
|
|
2015-08-27 00:23:46 +00:00
|
|
|
public:
|
2020-03-26 01:25:11 +00:00
|
|
|
explicit CMainFlowBase(const char* name) : CIOWin(name) {}
|
2019-08-09 12:45:18 +00:00
|
|
|
EMessageReturn OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue) override;
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual void AdvanceGameState(CArchitectureQueue& queue) = 0;
|
|
|
|
virtual void SetGameState(EClientFlowStates state, CArchitectureQueue& queue) = 0;
|
2015-08-27 00:23:46 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|