public override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (EditorID != null) { ele.TryPathTo("EditorID", true, out subEle); EditorID.WriteXML(subEle, master); } if (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (NoiseMap != null) { ele.TryPathTo("NoiseMap", true, out subEle); NoiseMap.WriteXML(subEle, master); } if (Opacity != null) { ele.TryPathTo("Opacity", true, out subEle); Opacity.WriteXML(subEle, master); } if (WaterFlags != null) { ele.TryPathTo("WaterFlags", true, out subEle); WaterFlags.WriteXML(subEle, master); } if (MaterialID != null) { ele.TryPathTo("MaterialID", true, out subEle); MaterialID.WriteXML(subEle, master); } if (Sound != null) { ele.TryPathTo("Sound", true, out subEle); Sound.WriteXML(subEle, master); } if (ActorEffect != null) { ele.TryPathTo("ActorEffect", true, out subEle); ActorEffect.WriteXML(subEle, master); } if (Damage != null) { ele.TryPathTo("Damage", true, out subEle); Damage.WriteXML(subEle, master); } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.WriteXML(subEle, master); } if (RelatedWaters != null) { ele.TryPathTo("RelatedWaters", true, out subEle); RelatedWaters.WriteXML(subEle, master); } }