sodoff/src/Schema/RuleItem.cs
Spirtix cf931e4f3a mission deep copy
.net 8 deprecated BinaryFormatter serialization
apart from that proper deep copies are ~10x faster
2025-06-26 21:41:50 +02:00

29 lines
614 B
C#

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;
}