Esempio n. 1
0
        public ComponentPool(uint capacity = ComponentsArrayDefaultSize)
        {
            Type = typeof(T);
            var size = (int)capacity;

            _components      = new FillableList <T>(size);
            _packedEntities  = new SparsedList <int?>(size);
            _sparsedEntities = new SparsedList <int?>(size);
        }