using System.Xml.Serialization; namespace sodoff.Schema; [XmlRoot(ElementName = "MissionCriteria", Namespace = "")] [Serializable] public class MissionCriteria { public MissionCriteria() { } public MissionCriteria(MissionCriteria other) { Type = other.Type; Ordered = other.Ordered; Min = other.Min; Repeat = other.Repeat; RuleItems = other.RuleItems.Select(r => new RuleItem(r)).ToList(); } [XmlElement(ElementName = "Type")] public string Type; [XmlElement(ElementName = "Ordered")] public bool Ordered; [XmlElement(ElementName = "Min")] public int Min; [XmlElement(ElementName = "Repeat")] public int Repeat; [XmlElement(ElementName = "RuleItems")] public List RuleItems; }