Esempio n. 1
0
 private void SetupGachaList(GachaParam[] gparams)
 {
     this.GachaList = new List <GachaTopParam>();
     for (int index1 = 0; index1 < gparams.Length; ++index1)
     {
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         GachaManager.\u003CSetupGachaList\u003Ec__AnonStorey1F3 listCAnonStorey1F3 = new GachaManager.\u003CSetupGachaList\u003Ec__AnonStorey1F3();
         // ISSUE: reference to a compiler-generated field
         listCAnonStorey1F3.group = gparams[index1].group;
         int           index2 = 0;
         GachaTopParam gachaTopParam;
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated method
         if (this.GachaList != null && !string.IsNullOrEmpty(listCAnonStorey1F3.group) && this.GachaList.FindIndex(new Predicate <GachaTopParam>(listCAnonStorey1F3.\u003C\u003Em__1B9)) != -1)
         {
             // ISSUE: reference to a compiler-generated method
             gachaTopParam = this.GachaList[this.GachaList.FindIndex(new Predicate <GachaTopParam>(listCAnonStorey1F3.\u003C\u003Em__1BA))];
             index2        = Array.IndexOf <string>(gachaTopParam.iname, (string)null);
         }
         else
         {
             gachaTopParam = new GachaTopParam();
         }
         gachaTopParam.iname[index2]      = gparams[index1].iname;
         gachaTopParam.category[index2]   = gparams[index1].category;
         gachaTopParam.coin[index2]       = gparams[index1].coin;
         gachaTopParam.gold[index2]       = gparams[index1].gold;
         gachaTopParam.coin_p[index2]     = gparams[index1].coin_p;
         gachaTopParam.num[index2]        = gparams[index1].num;
         gachaTopParam.ticket[index2]     = string.IsNullOrEmpty(gparams[index1].ticket_iname) ? string.Empty : gparams[index1].ticket_iname;
         gachaTopParam.ticket_num[index2] = gparams[index1].ticket_num;
         gachaTopParam.units               = gparams[index1].units;
         gachaTopParam.step[index2]        = gparams[index1].step;
         gachaTopParam.step_index[index2]  = gparams[index1].step_index;
         gachaTopParam.step_num[index2]    = gparams[index1].step_num;
         gachaTopParam.limit[index2]       = gparams[index1].limit;
         gachaTopParam.limit_num[index2]   = gparams[index1].limit_num;
         gachaTopParam.limit_stock[index2] = gparams[index1].limit_stock;
         gachaTopParam.type        = string.Empty;
         gachaTopParam.asset_bg    = string.IsNullOrEmpty(gparams[index1].asset_bg) ? string.Empty : gparams[index1].asset_bg;
         gachaTopParam.asset_title = string.IsNullOrEmpty(gparams[index1].asset_title) ? string.Empty : gparams[index1].asset_title;
         // ISSUE: reference to a compiler-generated field
         gachaTopParam.group           = listCAnonStorey1F3.group;
         gachaTopParam.btext[index2]   = gparams[index1].btext;
         gachaTopParam.confirm[index2] = gparams[index1].confirm;
         if (gachaTopParam.coin_p[index2] > 0)
         {
             gachaTopParam.sort.Insert(0, index2);
         }
         else
         {
             gachaTopParam.sort.Add(index2);
         }
         if (index2 == 0)
         {
             this.GachaList.Add(gachaTopParam);
         }
     }
 }
Esempio n. 2
0
 private void SetupGachaList(GachaParam[] gparams)
 {
     this.GachaList = new List <GachaTopParam>();
     for (int index1 = 0; index1 < gparams.Length; ++index1)
     {
         string        group  = gparams[index1].group;
         int           index2 = 0;
         GachaTopParam gachaTopParam;
         if (this.GachaList != null && !string.IsNullOrEmpty(group) && this.GachaList.FindIndex((Predicate <GachaTopParam>)(s => s.group == group)) != -1)
         {
             gachaTopParam = this.GachaList[this.GachaList.FindIndex((Predicate <GachaTopParam>)(s => s.group == group))];
             index2        = Array.IndexOf <string>(gachaTopParam.iname, (string)null);
         }
         else
         {
             gachaTopParam = new GachaTopParam();
         }
         gachaTopParam.iname[index2]      = gparams[index1].iname;
         gachaTopParam.category[index2]   = gparams[index1].category;
         gachaTopParam.coin[index2]       = gparams[index1].coin;
         gachaTopParam.gold[index2]       = gparams[index1].gold;
         gachaTopParam.coin_p[index2]     = gparams[index1].coin_p;
         gachaTopParam.num[index2]        = gparams[index1].num;
         gachaTopParam.ticket[index2]     = string.IsNullOrEmpty(gparams[index1].ticket_iname) ? string.Empty : gparams[index1].ticket_iname;
         gachaTopParam.ticket_num[index2] = gparams[index1].ticket_num;
         gachaTopParam.units               = gparams[index1].units;
         gachaTopParam.step[index2]        = gparams[index1].step;
         gachaTopParam.step_index[index2]  = gparams[index1].step_index;
         gachaTopParam.step_num[index2]    = gparams[index1].step_num;
         gachaTopParam.limit[index2]       = gparams[index1].limit;
         gachaTopParam.limit_num[index2]   = gparams[index1].limit_num;
         gachaTopParam.limit_stock[index2] = gparams[index1].limit_stock;
         gachaTopParam.type            = string.Empty;
         gachaTopParam.asset_bg        = string.IsNullOrEmpty(gparams[index1].asset_bg) ? string.Empty : gparams[index1].asset_bg;
         gachaTopParam.asset_title     = string.IsNullOrEmpty(gparams[index1].asset_title) ? string.Empty : gparams[index1].asset_title;
         gachaTopParam.group           = group;
         gachaTopParam.btext[index2]   = gparams[index1].btext;
         gachaTopParam.confirm[index2] = gparams[index1].confirm;
         if (gachaTopParam.coin_p[index2] > 0)
         {
             gachaTopParam.sort.Insert(0, index2);
         }
         else
         {
             gachaTopParam.sort.Add(index2);
         }
         if (index2 == 0)
         {
             this.GachaList.Add(gachaTopParam);
         }
     }
 }
Esempio n. 3
0
 private int GetGachaParamIndex(List <GachaTopParam> list, string iname)
 {
     for (int index = 0; index < list.Count; ++index)
     {
         GachaTopParam gachaTopParam = list[index];
         if (gachaTopParam != null && gachaTopParam.iname != null)
         {
             foreach (string str in gachaTopParam.iname)
             {
                 if (str == iname)
                 {
                     return(index);
                 }
             }
         }
     }
     return(0);
 }