protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("TagSkills/Skill1", true, out subEle); subEle.Value = TagSkill1.ToString(); ele.TryPathTo("TagSkills/Skill2", true, out subEle); subEle.Value = TagSkill2.ToString(); ele.TryPathTo("TagSkills/Skill3", true, out subEle); subEle.Value = TagSkill3.ToString(); ele.TryPathTo("TagSkills/Skill4", true, out subEle); subEle.Value = TagSkill4.ToString(); ele.TryPathTo("Flags", true, out subEle); subEle.Value = ClassDataFlags.ToString(); ele.TryPathTo("Services", true, out subEle); subEle.Value = Services.ToString(); ele.TryPathTo("Training/Skill", true, out subEle); subEle.Value = TrainingSkill.ToString(); ele.TryPathTo("Training/MaxLevel", true, out subEle); subEle.Value = MaxTrainingLevel.ToString(); WriteUnusedXML(ele, master); }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Aggression", true, out subEle); subEle.Value = Aggression.ToString(); ele.TryPathTo("Confidence", true, out subEle); subEle.Value = Confidence.ToString(); ele.TryPathTo("EnergyLevel", true, out subEle); subEle.Value = EnergyLevel.ToString(); ele.TryPathTo("Responsibility", true, out subEle); subEle.Value = Responsibility.ToString(); ele.TryPathTo("Mood", true, out subEle); subEle.Value = Mood.ToString(); WriteUnusedXML(ele, master); ele.TryPathTo("Services", true, out subEle); subEle.Value = Services.ToString(); ele.TryPathTo("Teaches", true, out subEle); subEle.Value = Teaches.ToString(); ele.TryPathTo("MaxTrainingLevel", true, out subEle); subEle.Value = MaxTrainingLevel.ToString(); ele.TryPathTo("Assistance", true, out subEle); subEle.Value = Assistance.ToString(); ele.TryPathTo("AggroRadiusBehavior", true, out subEle); subEle.Value = AggroRadiusBehavior.ToString(); ele.TryPathTo("AggroRadius", true, out subEle); subEle.Value = AggroRadius.ToString(); }