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("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new ImpactData(); } Data.ReadXML(subEle, master); } if (ele.TryPathTo("DecalData", false, out subEle)) { if (DecalData == null) { DecalData = new DecalData(); } DecalData.ReadXML(subEle, master); } if (ele.TryPathTo("TextureSet", false, out subEle)) { if (TextureSet == null) { TextureSet = new RecordReference(); } TextureSet.ReadXML(subEle, master); } if (ele.TryPathTo("Sound1", false, out subEle)) { if (Sound1 == null) { Sound1 = new RecordReference(); } Sound1.ReadXML(subEle, master); } if (ele.TryPathTo("Sound2", false, out subEle)) { if (Sound2 == null) { Sound2 = new RecordReference(); } Sound2.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("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("BaseImage_Transparency", false, out subEle)) { if (BaseImage_Transparency == null) { BaseImage_Transparency = new SimpleSubrecord <String>(); } BaseImage_Transparency.ReadXML(subEle, master); } if (ele.TryPathTo("NormalMap_Specular", false, out subEle)) { if (NormalMap_Specular == null) { NormalMap_Specular = new SimpleSubrecord <String>(); } NormalMap_Specular.ReadXML(subEle, master); } if (ele.TryPathTo("EnvironmentMapMask", false, out subEle)) { if (EnvironmentMapMask == null) { EnvironmentMapMask = new SimpleSubrecord <String>(); } EnvironmentMapMask.ReadXML(subEle, master); } if (ele.TryPathTo("GlowMap", false, out subEle)) { if (GlowMap == null) { GlowMap = new SimpleSubrecord <String>(); } GlowMap.ReadXML(subEle, master); } if (ele.TryPathTo("ParallaxMap", false, out subEle)) { if (ParallaxMap == null) { ParallaxMap = new SimpleSubrecord <String>(); } ParallaxMap.ReadXML(subEle, master); } if (ele.TryPathTo("EnvironmentMap", false, out subEle)) { if (EnvironmentMap == null) { EnvironmentMap = new SimpleSubrecord <String>(); } EnvironmentMap.ReadXML(subEle, master); } if (ele.TryPathTo("DecalData", false, out subEle)) { if (DecalData == null) { DecalData = new DecalData(); } DecalData.ReadXML(subEle, master); } if (ele.TryPathTo("TextureSetFlags", false, out subEle)) { if (TextureSetFlags == null) { TextureSetFlags = new SimpleSubrecord <TXSTFlags>(); } TextureSetFlags.ReadXML(subEle, master); } }