mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00

.net 8 deprecated BinaryFormatter serialization apart from that proper deep copies are ~10x faster
29 lines
614 B
C#
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;
|
|
}
|