protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("Sky/Upper", false, out subEle)) { SkyUpper.ReadXML(subEle, master); } if (ele.TryPathTo("Fog", false, out subEle)) { Fog.ReadXML(subEle, master); } if (ele.TryPathTo("Unused1", false, out subEle)) { Unused1.ReadXML(subEle, master); } if (ele.TryPathTo("Ambient", false, out subEle)) { Ambient.ReadXML(subEle, master); } if (ele.TryPathTo("Sunlight", false, out subEle)) { Sunlight.ReadXML(subEle, master); } if (ele.TryPathTo("Sun", false, out subEle)) { Sun.ReadXML(subEle, master); } if (ele.TryPathTo("Stars", false, out subEle)) { Stars.ReadXML(subEle, master); } if (ele.TryPathTo("Sky/Lower", false, out subEle)) { SkyLower.ReadXML(subEle, master); } if (ele.TryPathTo("Horizon", false, out subEle)) { Horizon.ReadXML(subEle, master); } if (ele.TryPathTo("Unused2", false, out subEle)) { Unused2.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Content", false, out subEle)) { if (Content == null) { Content = new SimpleSubrecord <String>(); } Content.ReadXML(subEle, master); } if (ele.TryPathTo("Header", false, out subEle)) { if (Header == null) { Header = new SimpleSubrecord <String>(); } Header.ReadXML(subEle, master); } if (ele.TryPathTo("Icon", false, out subEle)) { if (Icon == null) { Icon = new RecordReference(); } Icon.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused0", false, out subEle)) { if (Unused0 == null) { Unused0 = new SimpleSubrecord <Byte[]>(); } Unused0.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused1", false, out subEle)) { if (Unused1 == null) { Unused1 = new SimpleSubrecord <Byte[]>(); } Unused1.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused2", false, out subEle)) { if (Unused2 == null) { Unused2 = new SimpleSubrecord <Byte[]>(); } Unused2.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused3", false, out subEle)) { if (Unused3 == null) { Unused3 = new SimpleSubrecord <Byte[]>(); } Unused3.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused4", false, out subEle)) { if (Unused4 == null) { Unused4 = new SimpleSubrecord <Byte[]>(); } Unused4.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused5", false, out subEle)) { if (Unused5 == null) { Unused5 = new SimpleSubrecord <Byte[]>(); } Unused5.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused6", false, out subEle)) { if (Unused6 == null) { Unused6 = new SimpleSubrecord <Byte[]>(); } Unused6.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused7", false, out subEle)) { if (Unused7 == null) { Unused7 = new SimpleSubrecord <Byte[]>(); } Unused7.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused8", false, out subEle)) { if (Unused8 == null) { Unused8 = new SimpleSubrecord <Byte[]>(); } Unused8.ReadXML(subEle, master); } if (ele.TryPathTo("Unused/Unused9", false, out subEle)) { if (Unused9 == null) { Unused9 = new SimpleSubrecord <Byte[]>(); } Unused9.ReadXML(subEle, master); } if (ele.TryPathTo("MessageFlags", false, out subEle)) { if (MessageFlags == null) { MessageFlags = new SimpleSubrecord <MessageFlags>(); } MessageFlags.ReadXML(subEle, master); } if (ele.TryPathTo("DisplayTime", false, out subEle)) { if (DisplayTime == null) { DisplayTime = new SimpleSubrecord <UInt32>(); } DisplayTime.ReadXML(subEle, master); } if (ele.TryPathTo("Buttons", false, out subEle)) { if (Buttons == null) { Buttons = new List <MessageButton>(); } foreach (XElement e in subEle.Elements()) { MessageButton tempITXT = new MessageButton(); tempITXT.ReadXML(e, master); Buttons.Add(tempITXT); } } }