mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 14:20:00 -08:00
add Events schema
This commit is contained in:
1 parent
5844626634
commit
95f69ff1f8
1 file changed
+29
@@ -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> 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;
|
||||
}
|
||||
Reference in new issue
Block a user