diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-04-21 15:06:55 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-04-21 15:06:55 +0200 |
commit | d4e9d6bbc0abe66acb149a358a25c9a0f385ce74 (patch) | |
tree | f6d5890c18fa20eb554a2df03b186886acc0ef1b /src/Game.hpp | |
parent | Trying to fix build in linux (diff) | |
download | AltCraft-d4e9d6bbc0abe66acb149a358a25c9a0f385ce74.tar AltCraft-d4e9d6bbc0abe66acb149a358a25c9a0f385ce74.tar.gz AltCraft-d4e9d6bbc0abe66acb149a358a25c9a0f385ce74.tar.bz2 AltCraft-d4e9d6bbc0abe66acb149a358a25c9a0f385ce74.tar.lz AltCraft-d4e9d6bbc0abe66acb149a358a25c9a0f385ce74.tar.xz AltCraft-d4e9d6bbc0abe66acb149a358a25c9a0f385ce74.tar.zst AltCraft-d4e9d6bbc0abe66acb149a358a25c9a0f385ce74.zip |
Diffstat (limited to 'src/Game.hpp')
-rw-r--r-- | src/Game.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Game.hpp b/src/Game.hpp new file mode 100644 index 0000000..bc7224f --- /dev/null +++ b/src/Game.hpp @@ -0,0 +1,25 @@ +#pragma once + +#include <memory> + +class NetworkClient; +class GameState; +class Render; + +enum class State { + InitialLoading, + MainMenu, + Loading, + Playing, + Paused, + Inventory, + Chat, +}; + +struct GlobalState { + static std::shared_ptr<GameState> GetGameState(); + static Render *GetRender(); + static void Exec(); + static State GetState(); + static void SetState(const State &newState); +};
\ No newline at end of file |