Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
            }