示例#1
0
 public static void MapSeedToEntity(EquipmentSeed equipmentSeed, Equipment equipmentEntity)
 {
     equipmentEntity.ArcaneSpellFailureChance = equipmentSeed.arcane_spell_failure_chance;
     equipmentEntity.ArmorCheckPenalty = equipmentSeed.armor_check_penalty;
     equipmentEntity.ArmorShieldBonus = equipmentSeed.armor_shield_bonus;
     equipmentEntity.Category = equipmentSeed.category;
     equipmentEntity.Cost = equipmentSeed.cost;
     equipmentEntity.Critical = equipmentSeed.critical;
     equipmentEntity.DamageMedium = equipmentSeed.dmg_m;
     equipmentEntity.DamageSmall = equipmentSeed.dmg_s;
     equipmentEntity.Family = equipmentSeed.family;
     equipmentEntity.FullText = equipmentSeed.full_text;
     equipmentEntity.Id = equipmentSeed.Id;
     equipmentEntity.MaximumDexBonus = equipmentSeed.maximum_dex_bonus;
     equipmentEntity.Name = equipmentSeed.name;
     equipmentEntity.RangeIncrement = equipmentSeed.range_increment;
     equipmentEntity.Reference = equipmentSeed.reference;
     equipmentEntity.Speed20 = equipmentSeed.speed_20;
     equipmentEntity.Speed30 = equipmentSeed.speed_30;
     equipmentEntity.Subcategory = equipmentSeed.subcategory;
     equipmentEntity.WeaponType = equipmentSeed.type;
     equipmentEntity.Weight = equipmentSeed.weight;
 }
示例#2
0
 public static void MapModelToEntity(EquipmentViewModel equipment, Equipment equipmentEntity)
 {
     Mapper.Map(equipment, equipmentEntity);
 }
示例#3
0
 public static Equipment MapSeedToEntity(EquipmentSeed equipmentSeed)
 {
     var entity = new Equipment();
     MapSeedToEntity(equipmentSeed, entity);
     return entity;
 }
示例#4
0
 public static EquipmentViewModel MapEntityToModel(Equipment equipmentEntity)
 {
     return Mapper.Map<EquipmentViewModel>(equipmentEntity);
 }