summaryrefslogtreecommitdiffstats
path: root/src/Game.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2019-04-21 15:06:55 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2019-04-21 15:06:55 +0200
commitd4e9d6bbc0abe66acb149a358a25c9a0f385ce74 (patch)
treef6d5890c18fa20eb554a2df03b186886acc0ef1b /src/Game.hpp
parentTrying to fix build in linux (diff)
downloadAltCraft-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.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