using System.Xml.Serialization;

namespace sodoff.Schema;

[XmlRoot(ElementName = "RuleItem", Namespace = "")]
[Serializable]
public class RuleItem {
    public RuleItem() { }

    public RuleItem(RuleItem other) {
        Type = other.Type;
        MissionID = other.MissionID;
        ID = other.ID;
        Complete = other.Complete;
    }

    [XmlElement(ElementName = "Type")]
    public RuleItemType Type;

    [XmlElement(ElementName = "MissionID")]
    public int MissionID;

    [XmlElement(ElementName = "ID")]
    public int ID;

    [XmlElement(ElementName = "Complete")]
    public int Complete;
}
