aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 14:51:02 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-13 14:51:02 +0100
commit202725f481e64c4d95e370102ab93d4f8cf4af93 (patch)
tree18c1fccce5369e89b25c9167718707818f16dcfa /src/crepe/system
parent1df510f4a2dbe0fcb8c9f8a34695abf8d33f9ddc (diff)
incorporate feedback on #26
Diffstat (limited to 'src/crepe/system')
-rw-r--r--src/crepe/system/ScriptSystem.cpp2
-rw-r--r--src/crepe/system/ScriptSystem.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/system/ScriptSystem.cpp b/src/crepe/system/ScriptSystem.cpp
index aceb218..807ad7f 100644
--- a/src/crepe/system/ScriptSystem.cpp
+++ b/src/crepe/system/ScriptSystem.cpp
@@ -20,7 +20,7 @@ void ScriptSystem::update() {
for (Script * script : scripts) script->update();
}
-forward_list<Script *> ScriptSystem::get_scripts() {
+forward_list<Script *> ScriptSystem::get_scripts() const {
forward_list<Script *> scripts = {};
ComponentManager & mgr = ComponentManager::get_instance();
vector<reference_wrapper<BehaviorScript>> behavior_scripts
diff --git a/src/crepe/system/ScriptSystem.h b/src/crepe/system/ScriptSystem.h
index 4fa6141..f3d26d4 100644
--- a/src/crepe/system/ScriptSystem.h
+++ b/src/crepe/system/ScriptSystem.h
@@ -14,7 +14,7 @@ public:
private:
// TODO: to forward_list<reference_wrapper>
- std::forward_list<Script *> get_scripts();
+ std::forward_list<Script *> get_scripts() const;
};
} // namespace crepe