aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 10:39:31 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 10:39:31 +0200
commit58dfdba241b501d4b1b9688b44ee775507ec325b (patch)
tree37e4943d8605770e971f83b84039e929be2d043f /src/example
parent77555730e3ddb811b9ce8470659663e3f1573de2 (diff)
add Config + wip rework color
Diffstat (limited to 'src/example')
-rw-r--r--src/example/script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/example/script.cpp b/src/example/script.cpp
index a610b83..44e2922 100644
--- a/src/example/script.cpp
+++ b/src/example/script.cpp
@@ -8,6 +8,7 @@
#include <crepe/ScriptSystem.h>
#include <crepe/util/log.h>
+#include <crepe/api/Config.h>
#include <crepe/api/BehaviorScript.h>
using namespace crepe;
@@ -18,6 +19,9 @@ class MyScript : public api::BehaviorScript {
};
int main() {
+ auto & cfg = api::Config::get_instance();
+ cfg.log.level = util::log_level::TRACE;
+
dbg_trace();
auto obj = GameObject(0, "name", "tag", 0);