mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Make Component System separate from Global
This commit is contained in:
@@ -58,4 +58,10 @@ std::vector<entt::entity> ECS::FindByName(std::string_view name)
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
ECS &GetComponentSystem()
|
||||
{
|
||||
static ECS _ecs;
|
||||
return _ecs;
|
||||
}
|
||||
Reference in New Issue
Block a user