// 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: 0x06003167 RID: 12647 RVA: 0x000C1304 File Offset: 0x000BF504 public static BattleHeroEquipment PBBattleHeroEquipmentToBattleHeroEquipment(ProBattleHeroEquipment pbEquipment) { BattleHeroEquipment battleHeroEquipment = new BattleHeroEquipment { Id = pbEquipment.Id, Level = pbEquipment.Level, StarLevel = pbEquipment.StarLevel, Exp = pbEquipment.Exp, ResonanceId = pbEquipment.ResonanceId }; foreach (ProCommonBattleProperty pbProperty in pbEquipment.EnchantProperties) { battleHeroEquipment.EnchantProperties.Add(CommonBattleProperty.PBCommonBattlePropertyToCommonBattleProperty(pbProperty)); } return(battleHeroEquipment); }
// 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); }
// Token: 0x06004E4C RID: 20044 RVA: 0x0017CC04 File Offset: 0x0017AE04 public BagItemBase CreateInstanceBagItemByClient(ProGoods pbGoods) { GoodsType goodsType = (GoodsType)pbGoods.GoodsType; if (goodsType != GoodsType.GoodsType_Equipment) { return(null); } ProEquipment equipment = pbGoods.Equipment; EquipmentBagItem equipmentBagItem = new EquipmentBagItem(goodsType, pbGoods.Id, pbGoods.Nums, pbGoods.InstanceId); equipmentBagItem.Level = equipment.Level; equipmentBagItem.Exp = equipment.Exp; equipmentBagItem.StarLevel = equipment.StarLevel; equipmentBagItem.Locked = equipment.Locked; equipmentBagItem.ResonanceId = equipment.ResonanceId; foreach (ProCommonBattleProperty pbProperty in equipment.EnchantProperties) { equipmentBagItem.EnchantProperties.Add(CommonBattleProperty.PBCommonBattlePropertyToCommonBattleProperty(pbProperty)); } return(equipmentBagItem); }
// Token: 0x060031E2 RID: 12770 RVA: 0x000C4528 File Offset: 0x000C2728 public static ProCommonBattleProperty CommonBattlePropertyToPBCommonBattleProperty(CommonBattleProperty property) { return(new ProCommonBattleProperty { Id = (int)property.Id, Value = property.Value }); }