public GDEMonstersData ShallowClone() { string newKey = Guid.NewGuid().ToString(); GDEMonstersData newClone = new GDEMonstersData(newKey); newClone.HealthPoints = HealthPoints; newClone.BasicMeleeLow = BasicMeleeLow; newClone.BasicDistanceLow = BasicDistanceLow; newClone.BasicMagicLow = BasicMagicLow; newClone.SpecialAbilityAdditive = SpecialAbilityAdditive; newClone.MonsterName = MonsterName; newClone.MonsterType = MonsterType; newClone.MonsterDescription = MonsterDescription; newClone.DifficultyLevel = DifficultyLevel; newClone.SpecialAbility = SpecialAbility; return(newClone); }
public GDEMonstersData DeepClone() { GDEMonstersData newClone = ShallowClone(); return(newClone); }