Make Component System separate from Global

This commit is contained in:
2026-03-15 00:13:18 +01:00
parent b50760306b
commit 5f1ec0401a
3 changed files with 10 additions and 4 deletions

View File

@@ -58,4 +58,10 @@ std::vector<entt::entity> ECS::FindByName(std::string_view name)
}
return result;
}
ECS &GetComponentSystem()
{
static ECS _ecs;
return _ecs;
}