From 6c1c5589980153df914f293bf435e6ce3930248f Mon Sep 17 00:00:00 2001 From: Thraix Date: Sun, 24 Aug 2025 22:05:09 +0200 Subject: [PATCH] Add EcsManager::Find() --- CopiumEngine/src/copium/ecs/ECSManager.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CopiumEngine/src/copium/ecs/ECSManager.h b/CopiumEngine/src/copium/ecs/ECSManager.h index 28e38a4..3c5dfd1 100644 --- a/CopiumEngine/src/copium/ecs/ECSManager.h +++ b/CopiumEngine/src/copium/ecs/ECSManager.h @@ -209,6 +209,12 @@ namespace Copium return 0; } + template + EntityId Find() + { + return Find([] (EntityId, const Component& component, const Components&... components) { return true; }); + } + template std::type_index GetComponentId() {