Esempio n. 1
0
        //---------------------------------------------------------------------------

        public ItemPool(EItemPool type)
        {
            Type = type;

            Types  = new Dictionary <EItemType, float>();
            m_Rand = new Random(SeedManager.Get().NextSeed());
        }
Esempio n. 2
0
        //---------------------------------------------------------------------------

        public ItemPool Find(EItemPool type)
        {
            if (m_ItemPools.ContainsKey(type))
            {
                return(m_ItemPools[type]);
            }
            return(null);
        }
Esempio n. 3
0
        //---------------------------------------------------------------------------

        public EItemType Next(EItemPool type)
        {
            ItemPool pool = Find(type);

            if (pool != null)
            {
                return(pool.Next());
            }
            return(EItemType.None);
        }