diff options
Diffstat (limited to 'src/Game.hpp')
-rw-r--r-- | src/Game.hpp | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/src/Game.hpp b/src/Game.hpp index bc7224f..633585f 100644 --- a/src/Game.hpp +++ b/src/Game.hpp @@ -1,25 +1,27 @@ #pragma once -#include <memory> - -class NetworkClient; class GameState; class Render; +class NetworkClient; enum class State { - InitialLoading, - MainMenu, - Loading, - Playing, - Paused, - Inventory, - Chat, + 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 +void RunGame(); + +State GetState(); + +void SetState(State newState); + +GameState* GetGameState(); + +Render* GetRender(); + +NetworkClient* GetNetworkClient();
\ No newline at end of file |