using System.Reflection; using System.Xml.Serialization; using AtomicLib.XML; namespace AtomicLib; /// /// Class that handles how field information is saved as XML. /// [Serializable] [XmlRoot("fieldcontents")] public class FieldContents { /// The text entered into a field for the mod name. [XmlAttribute("ModName")] public string ModName { get; set; } /// The text entered into a field for the mod author. [XmlAttribute("Author")] public string Author { get; set; } /// The text entered into a field for the mod version. [XmlAttribute("Version")] public string Version { get; set; } /// The text entered into a field for the mod notes. [XmlAttribute("Notes")] public string Notes { get; set; } /// The checkbox that indicates if the mod uses custom saves. [XmlAttribute("UsesCustomSave")] public bool UsesCustomSave { get; set; } /// The text that indicates the path used to store the mod's custom saves. [XmlAttribute("CustomSaveDir")] public string CustomSaveDir { get; set; } /// The checkbox that indicates if the mod uses custom music. [XmlAttribute("UsesCustomMusic")] public bool UsesCustomMusic { get; set; } /// The checkbox that indicates if the mod uses the YoYo Compiler. [XmlAttribute("UsesYYC")] public bool UsesYYC { get; set; } /// The checkbox that indicates if the mod supports Windows [XmlAttribute("SupportsWindows")] public bool SupportsWindows { get; set; } /// The checkbox that indicates if the mod supports Linux [XmlAttribute("SupportsLinux")] public bool SupportsLinux { get; set; } /// The checkbox that indicates if the mod supports Mac [XmlAttribute("SupportsMac")] public bool SupportsMac { get; set; } /// The checkbox that indicates if the mod supports Android [XmlAttribute("SupportsAndroid")] public bool SupportsAndroid { get; set; } public FieldContents() { } }