protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("HealthPercentage", true, out subEle); subEle.Value = HealthPercentage.ToString(); ele.TryPathTo("Index", true, out subEle); subEle.Value = Index.ToString(); ele.TryPathTo("Stage", true, out subEle); subEle.Value = Stage.ToString(); ele.TryPathTo("Flags", true, out subEle); subEle.Value = Flags.ToString(); ele.TryPathTo("SelfDamagePerSecond", true, out subEle); subEle.Value = SelfDamagePerSecond.ToString(); ele.TryPathTo("Explosion", true, out subEle); Explosion.WriteXML(subEle, master); ele.TryPathTo("Debris", true, out subEle); Debris.WriteXML(subEle, master); ele.TryPathTo("DebrisCount", true, out subEle); subEle.Value = DebrisCount.ToString(); }