diff options
Diffstat (limited to 'src/GlobalState.hpp')
-rw-r--r-- | src/GlobalState.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/GlobalState.hpp b/src/GlobalState.hpp index 29ab7a0..c0f1769 100644 --- a/src/GlobalState.hpp +++ b/src/GlobalState.hpp @@ -7,8 +7,20 @@ class NetworkClient; class GameState; class Render; -struct GlobalState { +enum class State { + InitialLoading, + MainMenu, + Loading, + Playing, + Paused, + Inventory, + Chat, +}; + +struct GlobalState { static GameState *GetGameState(); static Render *GetRender(); static void Exec(); + static State GetState(); + static void SetState(const State &newState); };
\ No newline at end of file |