mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
33 lines
790 B
C#
33 lines
790 B
C#
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<RuleItem> RuleItems;
|
|
}
|