aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/CMakeLists.txt1
-rw-r--r--src/crepe/api/Config.h27
2 files changed, 28 insertions, 0 deletions
diff --git a/src/crepe/api/CMakeLists.txt b/src/crepe/api/CMakeLists.txt
index 6b337be..2181b30 100644
--- a/src/crepe/api/CMakeLists.txt
+++ b/src/crepe/api/CMakeLists.txt
@@ -7,6 +7,7 @@ target_sources(crepe PUBLIC
target_sources(crepe PUBLIC FILE_SET HEADERS FILES
# AudioSource.h
BehaviorScript.h
+ Config.h
Script.h
)
diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h
new file mode 100644
index 0000000..d6ee8e8
--- /dev/null
+++ b/src/crepe/api/Config.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include "../util/log.h"
+
+namespace crepe::api {
+
+class Config {
+private:
+ Config() = default;
+public:
+ ~Config() = default;
+
+public:
+ static Config & get_instance() {
+ static Config instance;
+ return instance;
+ }
+
+public:
+ struct {
+ util::log_level level = util::log_level::INFO;
+ bool color = true;
+ } log;
+};
+
+}
+