diff --git a/Svelto.ECS/EntityCollection.cs b/Svelto.ECS/EntityCollection.cs index 7cbb550..2521610 100644 --- a/Svelto.ECS/EntityCollection.cs +++ b/Svelto.ECS/EntityCollection.cs @@ -13,15 +13,15 @@ namespace Svelto.ECS _count = count; } - public EntityIterator GetEnumerator() + public EntityIterator GetEnumerator() { - return new EntityIterator(_array, _count); + return new EntityIterator(_array, _count); } readonly T[] _array; readonly uint _count; - public struct EntityIterator : IEnumerator + public struct EntityIterator : IEnumerator { public EntityIterator(T[] array, uint count) : this() { @@ -45,9 +45,7 @@ namespace Svelto.ECS T IEnumerator.Current => throw new NotImplementedException(); object IEnumerator.Current => throw new NotImplementedException(); - public void Dispose() - { - } + public void Dispose() {} readonly T[] _array; readonly uint _count; @@ -63,15 +61,15 @@ namespace Svelto.ECS _groups = groups; } - public EntityGroupsIterator GetEnumerator() + public EntityGroupsIterator GetEnumerator() { - return new EntityGroupsIterator(_db, _groups); + return new EntityGroupsIterator(_db, _groups); } readonly IEntitiesDB _db; readonly ExclusiveGroup[] _groups; - public struct EntityGroupsIterator : IEnumerator where T : struct, IEntityStruct + public struct EntityGroupsIterator : IEnumerator { public EntityGroupsIterator(IEntitiesDB db, ExclusiveGroup[] groups) : this() { @@ -124,17 +122,15 @@ namespace Svelto.ECS _groups = groups; } - public EntityGroupsIterator GetEnumerator() + public EntityGroupsIterator GetEnumerator() { - return new EntityGroupsIterator(_db, _groups); + return new EntityGroupsIterator(_db, _groups); } readonly IEntitiesDB _db; readonly ExclusiveGroup[] _groups; - public struct EntityGroupsIterator : IEnumerator.ValueRef> - where T1 : struct, IEntityStruct - where T2 : struct, IEntityStruct + public struct EntityGroupsIterator : IEnumerator { public EntityGroupsIterator(IEntitiesDB db, ExclusiveGroup[] groups) : this() {