diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-10-15 18:41:20 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:39:32 +0100 |
commit | 60449b3f092194087b052142be31fc74ccb9577a (patch) | |
tree | 5f70e05ebd853c754550af6ec705811ece112634 /src/GlobalState.hpp | |
parent | 2017-10-14 (diff) | |
download | AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.gz AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.bz2 AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.lz AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.xz AltCraft-60449b3f092194087b052142be31fc74ccb9577a.tar.zst AltCraft-60449b3f092194087b052142be31fc74ccb9577a.zip |
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 |