aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ScriptSystem.cpp
diff options
context:
space:
mode:
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());
+
}