diff --git a/MistWX-i2Me/Schema/twc/Events.cs b/MistWX-i2Me/Schema/twc/Events.cs new file mode 100644 index 0000000..3523d25 --- /dev/null +++ b/MistWX-i2Me/Schema/twc/Events.cs @@ -0,0 +1,29 @@ +using System.Xml.Serialization; + +namespace MistWX_i2Me.Schema.twc; + +[XmlRoot(ElementName = "Event")] +public class Event +{ + [XmlElement(ElementName = "Text")] + public string Text { get; set; } = ""; +} + +[XmlRoot(ElementName = "Events")] +public class Events +{ + [XmlElement(ElementName = "Event")] + public List Event { get; set; } = new(); + + [XmlAttribute(AttributeName = "StartRandom")] + public string? StartRandom { get; set; } = null; + + [XmlAttribute(AttributeName = "Type")] + public string? Type { get; set; } = null; + + [XmlAttribute(AttributeName = "FilePath")] + public string? FilePath { get; set; } = null; + + [XmlAttribute(AttributeName = "DefaultFile")] + public string? DefaultFile { get; set; } = null; +} \ No newline at end of file