Esempio n. 1
0
        void IPoolableRecycle.OnRecycle()
        {
            PoolClass <ArchetypeEntities> .Recycle(ref this.archetypes);

            if (this.list != null)
            {
                PoolRefList <Entity> .Recycle(ref this.list);
            }
            this.freeze = false;
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
 public void SetData(RefList <TEntity> data)
 {
     if (this.freeze == false && data != null && this.list != data)
     {
         if (this.list != null)
         {
             PoolRefList <TEntity> .Recycle(ref this.list);
         }
         this.list = data;
     }
 }
Esempio n. 4
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);
        }
Esempio n. 5
0
        void IPoolableRecycle.OnRecycle()
        {
            PoolRefList <TEntity> .Recycle(ref this.list);

            this.freeze = false;
        }