protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("Doors", false, out subEle)) { foreach (XElement e in subEle.Elements()) { var temp = new NavMeshDoor(); temp.ReadXML(e, master); Doors.Add(temp); } } }
protected override void ReadData(ESPReader reader) { using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size))) using (ESPReader subReader = new ESPReader(stream, reader.Plugin)) { try { for (int i = 0; i < size / 8; i++) { var temp = new NavMeshDoor(); temp.ReadBinary(subReader); Doors.Add(temp); } } catch { return; } } }