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("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Sounds", false, out subEle)) { if (Sounds == null) { Sounds = new List <RecordReference>(); } foreach (XElement e in subEle.Elements()) { RecordReference tempSNAM = new RecordReference(); tempSNAM.ReadXML(e, master); Sounds.Add(tempSNAM); } } if (ele.TryPathTo("WallaTriggerCount", false, out subEle)) { if (WallaTriggerCount == null) { WallaTriggerCount = new SimpleSubrecord <UInt32>(); } WallaTriggerCount.ReadXML(subEle, master); } if (ele.TryPathTo("UseSoundFromRegion", false, out subEle)) { if (UseSoundFromRegion == null) { UseSoundFromRegion = new RecordReference(); } UseSoundFromRegion.ReadXML(subEle, master); } if (ele.TryPathTo("EnvironmentType", false, out subEle)) { if (EnvironmentType == null) { EnvironmentType = new SimpleSubrecord <EnvironmentType>(); } EnvironmentType.ReadXML(subEle, master); } if (ele.TryPathTo("IsInterior", false, out subEle)) { if (IsInterior == null) { IsInterior = new SimpleSubrecord <IsInteriorEnum>(); } IsInterior.ReadXML(subEle, master); } }