public RecordView(string XMLFilePath) { Source = DataSource.XML; FilePath = XMLFilePath; XDocument doc = XDocument.Load(XMLFilePath); FormID = new FormID(); FormID.ReadXML((doc.Root as XElement).Element("FormID"), master); }
protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("Forms", false, out subEle)) { foreach (XElement e in subEle.Elements()) { var temp = new FormID(); temp.ReadXML(e, master); Forms.Add(temp); } } }
protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("Unknown1", false, out subEle)) { Unknown1.ReadXML(subEle, master); } if (ele.TryPathTo("Unknown2", false, out subEle)) { foreach (XElement e in subEle.Elements()) { var temp = new FormID(); temp.ReadXML(e, master); Unknown2.Add(temp); } } if (ele.TryPathTo("Unknown3", false, out subEle)) { foreach (XElement e in subEle.Elements()) { var temp = new FormID(); temp.ReadXML(e, master); Unknown3.Add(temp); } } if (ele.TryPathTo("Doors", false, out subEle)) { foreach (XElement e in subEle.Elements()) { var temp = new FormID(); temp.ReadXML(e, master); Doors.Add(temp); } } }
public override void ReadTypeDataXML(XElement element, ElderScrollsPlugin master) { Worldspace = new FormID(); Worldspace.ReadXML(element.Element("Worldspace"), master); }
public override void ReadTypeDataXML(XElement element, ElderScrollsPlugin master) { Cell = new FormID(); Cell.ReadXML(element.Element("Cell"), master); }
public override void ReadTypeDataXML(XElement element, ElderScrollsPlugin master) { Topic = new FormID(); Topic.ReadXML(element.Element("Topic"), master); }