예제 #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;
 }
예제 #2
0
 public static Power MapSeedToEntity(PowerSeed powerSeed)
 {
     var newPower = new Power();
     MapSeedToEntity(powerSeed, newPower);
     return newPower;
 }