Exemple #1
0
 public void copyFrom(Reward another)
 {
     this.ChestType      = another.ChestType;
     this.CoinDrops      = new List <double>(another.CoinDrops);
     this.DiamondDrops   = new List <double>(another.DiamondDrops);
     this.TokenDrops     = new List <double>(another.TokenDrops);
     this.Boost          = another.Boost;
     this.Skill          = another.Skill;
     this.ItemDrops      = new List <ItemInstance>(another.ItemDrops);
     this.RunestoneDrops = new List <string>(another.RunestoneDrops);
     this.CrownDrops     = new List <double>(another.CrownDrops);
     if (another.RunestoneAtIndexConvertedIntoTokens != null)
     {
         this.RunestoneAtIndexConvertedIntoTokens = new List <int>(another.RunestoneAtIndexConvertedIntoTokens);
     }
     this.ShopEntryId             = another.ShopEntryId;
     this.Revives                 = another.Revives;
     this.Sprite                  = another.Sprite;
     this.FrenzyPotions           = another.FrenzyPotions;
     this.DustDrops               = new List <double>(another.DustDrops);
     this.ShopEntryDrops          = new List <string>(another.ShopEntryDrops);
     this.XpPotions               = another.XpPotions;
     this.BossPotions             = another.BossPotions;
     this.Pets                    = new List <PetReward>(another.Pets);
     this.MegaBoxes               = another.MegaBoxes;
     this.RewardSource            = another.RewardSource;
     this.RewardSourceId          = another.RewardSourceId;
     this.ChestTypeVisualOverride = another.ChestTypeVisualOverride;
     this.TournamentUpgradeReward = another.TournamentUpgradeReward;
 }
Exemple #2
0
 public void clearContent()
 {
     this.CoinDrops.Clear();
     this.DiamondDrops.Clear();
     this.TokenDrops.Clear();
     this.Boost = BoostType.UNSPECIFIED;
     this.Skill = SkillType.NONE;
     this.ItemDrops.Clear();
     this.RunestoneDrops.Clear();
     this.CrownDrops.Clear();
     this.Revives = 0;
     this.RunestoneAtIndexConvertedIntoTokens = null;
     this.ShopEntryId   = null;
     this.Sprite        = null;
     this.FrenzyPotions = 0;
     this.DustDrops.Clear();
     this.ShopEntryDrops.Clear();
     this.XpPotions   = 0;
     this.BossPotions = 0;
     this.Pets.Clear();
     this.MegaBoxes = 0;
     this.TournamentUpgradeReward = null;
 }