Ejemplo n.º 1
0
 public static void MapSeedToEntity(PowerSeed powerSeed, Power powerEntity)
 {
     powerEntity.Area = powerSeed.area;
     powerEntity.Augment = HttpUtility.HtmlDecode(powerSeed.augment);
     powerEntity.Description = HttpUtility.HtmlDecode(powerSeed.description);
     powerEntity.Descriptor = powerSeed.descriptor;
     powerEntity.Discipline = powerSeed.discipline;
     powerEntity.Display = powerSeed.display;
     powerEntity.Duration = powerSeed.duration;
     powerEntity.Effect = powerSeed.effect;
     powerEntity.FullText = HttpUtility.HtmlDecode(powerSeed.full_text);
     powerEntity.Id = powerSeed.Id;
     powerEntity.Level = powerSeed.level;
     powerEntity.ManifestingTime = powerSeed.manifesting_time;
     powerEntity.Name = powerSeed.name;
     powerEntity.PowerPoints = powerSeed.power_points;
     powerEntity.PowerResistance = powerSeed.power_resistance;
     powerEntity.Range = powerSeed.range;
     powerEntity.Reference = powerSeed.reference;
     powerEntity.SavingThrow = powerSeed.saving_throw;
     powerEntity.ShortDescription = powerSeed.short_description;
     powerEntity.Subdiscipline = powerSeed.subdiscipline;
     powerEntity.Target = powerSeed.target;
     powerEntity.XPCost = powerSeed.xp_cost;
 }
Ejemplo n.º 2
0
 public static void MapModelToEntity(PowerViewModel power, Power powerEntity)
 {
     Mapper.Map(power, powerEntity);
 }
Ejemplo n.º 3
0
 public static Power MapSeedToEntity(PowerSeed powerSeed)
 {
     var newPower = new Power();
     MapSeedToEntity(powerSeed, newPower);
     return newPower;
 }
Ejemplo n.º 4
0
 public static PowerViewModel MapEntityToModel(Power powerEntity)
 {
     return Mapper.Map<PowerViewModel>(powerEntity);
 }