aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/manager/ComponentManager.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-07 14:19:26 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-07 14:19:26 +0100
commitf3009ab8f0785a54d3fd83c0d758c8ebd901adda (patch)
tree6e9df9ef2311c28ee590c30e3a1f00018105bdd9 /src/crepe/manager/ComponentManager.cpp
parent90c6bf03e59fdec64f850310bcbff45ae86f69e3 (diff)
`make format`
Diffstat (limited to 'src/crepe/manager/ComponentManager.cpp')
-rw-r--r--src/crepe/manager/ComponentManager.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/crepe/manager/ComponentManager.cpp b/src/crepe/manager/ComponentManager.cpp
index 44774d9..df30d27 100644
--- a/src/crepe/manager/ComponentManager.cpp
+++ b/src/crepe/manager/ComponentManager.cpp
@@ -64,14 +64,11 @@ void ComponentManager::set_persistent(game_object_id_t id, bool persistent) {
}
set<game_object_id_t> ComponentManager::get_objects_by_name(const string & name) const {
- return this->get_objects_by_predicate<Metadata>([name](const Metadata & data) {
- return data.name == name;
- });
+ return this->get_objects_by_predicate<Metadata>(
+ [name](const Metadata & data) { return data.name == name; });
}
set<game_object_id_t> ComponentManager::get_objects_by_tag(const string & tag) const {
- return this->get_objects_by_predicate<Metadata>([tag](const Metadata & data) {
- return data.tag == tag;
- });
+ return this->get_objects_by_predicate<Metadata>(
+ [tag](const Metadata & data) { return data.tag == tag; });
}
-