public void add(int stage, string[] data_soldiers, string[] data_bosss)
            {
                WeightRandom <Stage_Level_stagechapterModel.EquipExpDropDataOne> random = new WeightRandom <Stage_Level_stagechapterModel.EquipExpDropDataOne>();
                int index  = 0;
                int length = data_soldiers.Length;

                while (index < length)
                {
                    Stage_Level_stagechapterModel.EquipExpDropDataOne t = this.get(data_soldiers[index]);
                    random.Add(t, t.weight);
                    index++;
                }
                this.soldiers.Add(stage, random);
                WeightRandom <Stage_Level_stagechapterModel.EquipExpDropDataOne> random2 = new WeightRandom <Stage_Level_stagechapterModel.EquipExpDropDataOne>();
                int num3 = 0;
                int num4 = data_bosss.Length;

                while (num3 < num4)
                {
                    Stage_Level_stagechapterModel.EquipExpDropDataOne t = this.get(data_bosss[num3]);
                    random2.Add(t, t.weight);
                    num3++;
                }
                this.bosss.Add(stage, random2);
            }
        public void Init()
        {
            this.init_show_prop_weight();
            this.mMysticShopData = LocalSave.Instance.mSaveData.mMysticShopData;
            IList <Shop_MysticShop> allBeans = base.GetAllBeans();
            int num   = 0;
            int count = allBeans.Count;

            while (num < count)
            {
                Shop_MysticShop shop   = allBeans[num];
                int             index  = 0;
                int             length = shop.Stage.Length;
                while (index < length)
                {
                    if (!this.mEquipList.TryGetValue(shop.Stage[index], out ShopData data))
                    {
                        data = new ShopData {
                            stageid = shop.Stage[index]
                        };
                        this.mEquipList.Add(shop.Stage[index], data);
                    }
                    data.Add(shop);
                    index++;
                }
                num++;
            }
            IList <Shop_MysticShopShow> list2 = LocalModelManager.Instance.Shop_MysticShopShow.GetAllBeans();
            int num5 = 0;
            int num6 = list2.Count;

            while (num5 < num6)
            {
                Shop_MysticShopShow show   = list2[num5];
                WeightRandom        random = new WeightRandom();
                int index  = 0;
                int length = show.ShopTypeProb.Length;
                while (index < length)
                {
                    random.Add(index + 1, show.ShopTypeProb[index]);
                    index++;
                }
                this.mCountList.Add(show.ID, random);
                num5++;
            }
        }
        private void init_show_prop_weight()
        {
            IEnumerator <Shop_MysticShopShow> enumerator = LocalModelManager.Instance.Shop_MysticShopShow.GetAllBeans().GetEnumerator();

            while (enumerator.MoveNext())
            {
                int[] shopTypeProb = enumerator.Current.ShopTypeProb;
                if (shopTypeProb.Length == 2)
                {
                    WeightRandom random = new WeightRandom();
                    for (int i = 0; i < shopTypeProb.Length; i++)
                    {
                        if (shopTypeProb[i] > 0)
                        {
                            random.Add(i, shopTypeProb[i]);
                        }
                    }
                }
            }
        }