Exemple #1
0
 public static void Init(List <GachaDropData> a_drops = null, List <GachaDropData> a_dropMails = null, GachaReceiptData a_receipt = null)
 {
     GachaResultData.Reset();
     if (a_drops != null)
     {
         GachaResultData.drops_ = a_drops;
     }
     if (a_dropMails != null)
     {
         GachaResultData.dropMails_ = a_dropMails;
     }
     GachaResultData.excites_ = GachaResultData.CalcExcites(a_drops);
     if (a_receipt != null)
     {
         GachaResultData.receipt = a_receipt;
     }
     using (List <GachaDropData> .Enumerator enumerator = GachaResultData.drops_.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             GachaDropData current = enumerator.Current;
             current.excites = GachaResultData.CalcExcitesForDrop(current);
         }
     }
 }
Exemple #2
0
 public static void Init(List <GachaDropData> a_drops = null, List <GachaDropData> a_dropMails = null, List <int> a_summonCoins = null, GachaReceiptData a_receipt = null, bool a_use_onemore = false, int a_is_pending = -1, int a_redraw_rest = -1)
 {
     GachaResultData.Reset();
     if (a_drops != null)
     {
         GachaResultData.drops_ = a_drops;
     }
     if (a_dropMails != null)
     {
         GachaResultData.dropMails_ = a_dropMails;
     }
     if (a_summonCoins != null)
     {
         GachaResultData.summonCoins_ = a_summonCoins;
     }
     GachaResultData.excites_ = GachaResultData.CalcExcites(a_drops);
     if (a_receipt != null)
     {
         GachaResultData.receipt = a_receipt;
     }
     using (List <GachaDropData> .Enumerator enumerator = GachaResultData.drops_.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             GachaDropData current = enumerator.Current;
             current.excites = GachaResultData.CalcExcitesForDrop(current);
         }
     }
     GachaResultData.use_one_more_ = a_use_onemore;
     GachaResultData.m_is_pending  = a_is_pending;
     GachaResultData.m_redraw_rest = a_redraw_rest;
 }