예제 #1
0
        /// <summary>
        /// Initialize all the pools from the list
        /// </summary>
        public void Initialize()
        {
            Instance = this;

            foreach (var pool in pools)
            {
                var objs = GeneratePool(pool);

                if (PoolExists(pool.Id))
                {
                    continue;
                }

                pool.SetObjects(objs);
                poolDict.Add(pool.Id, pool);
            }
        }
예제 #2
0
 public abstract void SetPooler(Pooler pooler, Pool pool);
예제 #3
0
 /// <summary>
 /// Set pooler/pool data
 /// </summary>
 public override void SetPooler(Pooler pooler, Pool pool)
 {
     this.pooler = pooler;
     this.pool   = pool;
 }