summaryrefslogtreecommitdiff
path: root/src/game-settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-settings.hpp')
-rw-r--r--src/game-settings.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game-settings.hpp b/src/game-settings.hpp
new file mode 100644
index 0000000..2f7fb26
--- /dev/null
+++ b/src/game-settings.hpp
@@ -0,0 +1,26 @@
+#ifndef PKE_GAME_SETTINGS_HPP
+#define PKE_GAME_SETTINGS_HPP
+
+#include <cstdint>
+
+struct GameSettings {
+ bool isGameRunning = true;
+ bool isGamePaused = false;
+ bool isFramerateUnlocked = true;
+ bool isShowingEditor = true;
+ bool isRenderingDebug = false;
+ int64_t targetFPS = 144;
+ int64_t minFPS = 20;
+ double deltaPerFrame = 1 / double(targetFPS);
+ double minimumDeltaPerFrame = 1 / double(minFPS);
+ struct {
+ bool isShowingConsole = true;
+ bool isShowingEntityList = true;
+ bool isShowingSceneEditor = true;
+ bool isShowingUBO = true;
+ } editorSettings;
+};
+
+extern GameSettings pkeSettings;
+
+#endif /* PKE_GAME_SETTINGS_HPP */