public EntityCollection(IBuffer <T> buffer, IEntityIDs entityIDs, uint count) : this() { DBC.ECS.Check.Require(count == 0 || buffer.isValid, "Buffer is found in impossible state"); _buffer = buffer; _entityIDs = entityIDs; this.count = count; }
EntityCollection <T> InternalQueryEntities <T> (FasterDictionary <RefWrapperType, ITypeSafeDictionary> entitiesInGroupPerType) where T : struct, IBaseEntityComponent { uint count = 0; IBuffer <T> buffer; IEntityIDs ids = default; if (SafeQueryEntityDictionary <T>(out var typeSafeDictionary, entitiesInGroupPerType) == false) { buffer = default; }