Add EcsManager::Find()
This commit is contained in:
1 parent
71e02f3015
commit
6c1c558998
1 file changed
+6
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user