// Token: 0x06003166 RID: 12646 RVA: 0x000C1258 File Offset: 0x000BF458 public static ProBattleHeroEquipment BattleHeroEquipmentToPBBattleHeroEquipment(BattleHeroEquipment equipment) { ProBattleHeroEquipment proBattleHeroEquipment = new ProBattleHeroEquipment { Id = equipment.Id, Level = equipment.Level, StarLevel = equipment.StarLevel, Exp = equipment.Exp, ResonanceId = equipment.ResonanceId }; foreach (CommonBattleProperty property in equipment.EnchantProperties) { proBattleHeroEquipment.EnchantProperties.Add(CommonBattleProperty.CommonBattlePropertyToPBCommonBattleProperty(property)); } return(proBattleHeroEquipment); }
// Token: 0x06004E5C RID: 20060 RVA: 0x0017CE08 File Offset: 0x0017B008 public override ProGoods ToPBGoods() { ProGoods proGoods = new ProGoods(); proGoods.GoodsType = (int)base.GoodsTypeId; proGoods.Id = base.ContentId; proGoods.Nums = base.Nums; proGoods.InstanceId = base.InstanceId; ProEquipment proEquipment = new ProEquipment(); proGoods.Equipment = proEquipment; proEquipment.Level = this.Level; proEquipment.Exp = this.Exp; proEquipment.StarLevel = this.StarLevel; proEquipment.Locked = this.Locked; proEquipment.ResonanceId = this.ResonanceId; foreach (CommonBattleProperty property in this.EnchantProperties) { proEquipment.EnchantProperties.Add(CommonBattleProperty.CommonBattlePropertyToPBCommonBattleProperty(property)); } return(proGoods); }