From d4e9d6bbc0abe66acb149a358a25c9a0f385ce74 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 21 Apr 2019 18:06:55 +0500 Subject: Renamed GlobalState to Game --- src/Game.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Game.hpp (limited to 'src/Game.hpp') 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 + +class NetworkClient; +class GameState; +class Render; + +enum class State { + InitialLoading, + MainMenu, + Loading, + Playing, + Paused, + Inventory, + Chat, +}; + +struct GlobalState { + static std::shared_ptr GetGameState(); + static Render *GetRender(); + static void Exec(); + static State GetState(); + static void SetState(const State &newState); +}; \ No newline at end of file -- cgit v1.2.3