aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/ScriptSystem.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-11-15 16:10:45 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-11-15 16:10:45 +0100
commitb019b401c3a1de0ffea7e6776242ae73599651ef (patch)
tree473c90cd71a8ee9943d8d333e11f6d40e68a8287 /src/crepe/system/ScriptSystem.cpp
parente6bc46a30152a7585dda24fde66622575349d25e (diff)
collision handeling example
Diffstat (limited to 'src/crepe/system/ScriptSystem.cpp')
-rw-r--r--src/crepe/system/ScriptSystem.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crepe/system/ScriptSystem.cpp b/src/crepe/system/ScriptSystem.cpp
index f2673e7..e41961e 100644
--- a/src/crepe/system/ScriptSystem.cpp
+++ b/src/crepe/system/ScriptSystem.cpp
@@ -17,7 +17,11 @@ void ScriptSystem::update() {
dbg_trace();
forward_list<Script *> scripts = this->get_scripts();
- for (Script * script : scripts) script->update();
+ for (Script * script : scripts)
+ {
+ script->init();
+ script->update();
+ };
}
forward_list<Script *> ScriptSystem::get_scripts() {