Add EcsManager::Find()

This commit is contained in:
Thraix
2025-08-24 22:05:09 +02:00
parent 71e02f3015
commit 6c1c558998
+6
View File
@@ -209,6 +209,12 @@ namespace Copium
return 0;
}
template <typename Component, typename... Components>
EntityId Find()
{
return Find<Component, Components...>([] (EntityId, const Component& component, const Components&... components) { return true; });
}
template <typename T>
std::type_index GetComponentId()
{