summaryrefslogtreecommitdiff
path: root/src/include/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/game.h')
-rw-r--r--src/include/game.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/game.h b/src/include/game.h
new file mode 100644
index 0000000..2c09ada
--- /dev/null
+++ b/src/include/game.h
@@ -0,0 +1,31 @@
+/*
+* BSD 2-Clause “Simplified” License
+* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com
+* All rights reserved.
+*/
+
+#ifndef INCLUDE_GAME
+#define INCLUDE_GAME
+
+typedef enum t_game_state
+{
+ GAME_STATE_LOADING = 1,
+ GAME_STATE_MENU = 2,
+ GAME_STATE_SELECT_SAVE = 3,
+ GAME_STATE_WORLD_MAP = 4,
+ GAME_STATE_LOADING_WORLD = 5,
+ GAME_STATE_ERROR = 6,
+ GAME_STATE_PLACE_DETAIL = 7,
+ GAME_STATE_SETTINGS = 8,
+} game_state;
+
+typedef struct t_game
+{
+ game_state current_state;
+} game;
+
+void game_set_active_scene(game_state state);
+void game_update(platform_window* window);
+void game_render(platform_window* window);
+
+#endif \ No newline at end of file