public int CreatePool(MaiFeoMemoryPoolType type,int num) { MaiFeoMemoryPool pool = null; switch (type) { case MaiFeoMemoryPoolType.PoolType_AloneBattleBillobard: pool = new AloneBattleBillboardPool(); pool.Initialize(num); break; case MaiFeoMemoryPoolType.PoolType_Shadow: break; case MaiFeoMemoryPoolType.PoolType_SplitBattleBillboard: pool = new SplitBattleBillboardPool(); pool.Initialize(num); break; case MaiFeoMemoryPoolType.PoolType_SuperBattleBillboard: pool = new SuperBattleBillboardPool(); pool.Initialize(num); break; } m_dictMemoryPool.Add(m_iPoolID, pool); return m_iPoolID++; }
public int CreatePool(MaiFeoMemoryPoolType type, int num) { MaiFeoMemoryPool pool = null; switch (type) { case MaiFeoMemoryPoolType.PoolType_AloneBattleBillobard: pool = new AloneBattleBillboardPool(); pool.Initialize(num); break; case MaiFeoMemoryPoolType.PoolType_Shadow: break; case MaiFeoMemoryPoolType.PoolType_SplitBattleBillboard: pool = new SplitBattleBillboardPool(); pool.Initialize(num); break; case MaiFeoMemoryPoolType.PoolType_SuperBattleBillboard: pool = new SuperBattleBillboardPool(); pool.Initialize(num); break; } m_dictMemoryPool.Add(m_iPoolID, pool); return(m_iPoolID++); }