Ejemplo n.º 1
0
        public void CopyFrom(Storage <TEntity> other)
        {
            if (this.list != null)
            {
                PoolRefList <TEntity> .Recycle(ref this.list);
            }
            this.list = PoolRefList <TEntity> .Spawn(other.list.Capacity);

            this.list.CopyFrom(other.list);
        }
Ejemplo n.º 2
0
        public void CopyFrom(Storage other)
        {
            this.archetypes.CopyFrom(other.archetypes);
            if (this.list != null)
            {
                PoolRefList <Entity> .Recycle(ref this.list);
            }
            this.list = PoolRefList <Entity> .Spawn(other.list.Capacity);

            this.list.CopyFrom(other.list);
        }
Ejemplo n.º 3
0
 public void Initialize(int capacity)
 {
     this.list = PoolRefList <TEntity> .Spawn(capacity);
 }
Ejemplo n.º 4
0
        public void Initialize(int capacity)
        {
            this.list = PoolRefList <Entity> .Spawn(capacity);

            this.archetypes = PoolClass <ArchetypeEntities> .Spawn();
        }