// method to clone the Objective public override BaseObjective Clone() { ObjectiveBuffSDX objectiveBuff = new ObjectiveBuffSDX(); this.CopyValues(objectiveBuff); return(objectiveBuff); }
// Helper to the clone protected void CopyValues(ObjectiveBuffSDX objective) { objective.ID = this.ID; objective.Value = this.Value; objective.Optional = this.Optional; objective.currentValue = this.currentValue; objective.Phase = this.Phase; objective.strBuff = this.strBuff; }