summaryrefslogtreecommitdiffstats
path: root/src/Game.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Game.hpp')
-rw-r--r--src/Game.hpp25
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