diff --git a/Svelto.ECS/EntityGroup.cs b/Svelto.ECS/EntityGroup.cs deleted file mode 100644 index b12c1a9..0000000 --- a/Svelto.ECS/EntityGroup.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using Svelto.DataStructures; -using Svelto.ECS.Internal; - -namespace Svelto.ECS -{ - public struct EntityGroup - { - internal EntityGroup(FasterDictionary, ITypeSafeDictionary> entitiesInGroupPerType, uint _groupID) - { - _group = entitiesInGroupPerType; - groupID = _groupID; - } - - public ref T QueryEntity(uint entityGidEntityId) where T : struct, IEntityStruct - { - return ref (_group[new RefWrapper(typeof(T))] as TypeSafeDictionary).GetValueByRef( - entityGidEntityId); - } - - public bool Exists(uint entityGidEntityId) where T : struct, IEntityStruct - { - return (_group[new RefWrapper(typeof(T))] as TypeSafeDictionary).ContainsKey(entityGidEntityId); - } - - readonly FasterDictionary, ITypeSafeDictionary> _group; - public uint groupID; - } -} \ No newline at end of file