Beispiel #1
0
 internal RewardData(Triton.Game.Mapping.RewardData reward)
 {
     this.Type  = reward.m_type;
     this.Count = 1;
     if (reward.RewardType == Triton.Game.Mapping.Reward.Type.ARCANE_DUST)
     {
         ArcaneDustRewardData data = new ArcaneDustRewardData(reward.Address);
         this.Count = data.Amount;
     }
     else if (reward.RewardType == Triton.Game.Mapping.Reward.Type.GOLD)
     {
         GoldRewardData data2 = new GoldRewardData(reward.Address);
         this.Count = (int)data2.Amount;
     }
     else if (reward.RewardType == Triton.Game.Mapping.Reward.Type.CARD)
     {
         CardRewardData data3 = new CardRewardData(reward.Address);
         this.Count = data3.Count;
     }
     else if (reward.RewardType == Triton.Game.Mapping.Reward.Type.BOOSTER_PACK)
     {
         BoosterPackRewardData data4 = new BoosterPackRewardData(reward.Address);
         this.Count = data4.Count;
     }
 }
Beispiel #2
0
 public static string GetRewardText(RewardData rewardData)
 {
     object[] objArray1 = new object[] { rewardData };
     return(MonoClass.smethod_12(TritonHs.MainAssemblyPath, "", "RewardUtils", "GetRewardText", objArray1));
 }
Beispiel #3
0
 public void SetData(RewardData data, bool updateVisuals)
 {
     object[] objArray1 = new object[] { data, updateVisuals };
     base.method_8("SetData", objArray1);
 }