//--------------------------------------------------------------------------- public ItemPool(EItemPool type) { Type = type; Types = new Dictionary <EItemType, float>(); m_Rand = new Random(SeedManager.Get().NextSeed()); }
//--------------------------------------------------------------------------- public ItemPool Find(EItemPool type) { if (m_ItemPools.ContainsKey(type)) { return(m_ItemPools[type]); } return(null); }
//--------------------------------------------------------------------------- public EItemType Next(EItemPool type) { ItemPool pool = Find(type); if (pool != null) { return(pool.Next()); } return(EItemType.None); }