aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ScriptSystem.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-13 20:52:08 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-13 20:52:08 +0200
commitf9aa198eef7b85eeba3bac4c4fe2d4578b836bbf (patch)
tree3d374caa0510aa6389bd5901b83fe5b5b81d6dc1 /src/crepe/ScriptSystem.cpp
parent5d041cce13da66aa3457d236579a9ac90ebf7618 (diff)
WIP behavior script (problems)loek/scripts
Diffstat (limited to 'src/crepe/ScriptSystem.cpp')
-rw-r--r--src/crepe/ScriptSystem.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/crepe/ScriptSystem.cpp b/src/crepe/ScriptSystem.cpp
index e301c71..e40909e 100644
--- a/src/crepe/ScriptSystem.cpp
+++ b/src/crepe/ScriptSystem.cpp
@@ -1,3 +1,7 @@
+#include <vector>
+#include "ComponentManager.h"
+#include "api/BehaviorScript.h"
+#include "util/fmt.h"
#include "util/log.h"
#include "ScriptSystem.h"
@@ -17,6 +21,13 @@ ScriptSystem & ScriptSystem::get_instance() {
}
void ScriptSystem::update() {
+ using namespace std;
dbg_trace();
+
+ ComponentManager & mgr = ComponentManager::get_instance();
+ vector<reference_wrapper<api::BehaviorScript>> scripts = mgr.get_components_by_type<api::BehaviorScript>();
+
+ dbg_logf("script count: %lu", scripts.size());
+
}