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 (Relationships != null) { ele.TryPathTo("Relationships", true, out subEle); List <string> xmlNames = new List <string> { "Relationship" }; int i = 0; foreach (var entry in Relationships) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.WriteXML(subEle, master); } if (Unused != null) { ele.TryPathTo("Unused", true, out subEle); Unused.WriteXML(subEle, master); } if (Ranks != null) { ele.TryPathTo("Ranks", true, out subEle); List <string> xmlNames = new List <string> { "Rank" }; int i = 0; foreach (var entry in Ranks) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } if (Reputation != null) { ele.TryPathTo("Reputation", true, out subEle); Reputation.WriteXML(subEle, master); } }
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 (CellFlags != null) { ele.TryPathTo("CellFlags", true, out subEle); CellFlags.WriteXML(subEle, master); } if (Grid != null) { ele.TryPathTo("Grid", true, out subEle); Grid.WriteXML(subEle, master); } if (Lighting != null) { ele.TryPathTo("Lighting", true, out subEle); Lighting.WriteXML(subEle, master); } if (FootstepMaterial != null) { ele.TryPathTo("FootstepMaterial", true, out subEle); FootstepMaterial.WriteXML(subEle, master); } if (LightTemplate != null) { ele.TryPathTo("LightTemplate", true, out subEle); LightTemplate.WriteXML(subEle, master); } if (LightTemplateInherit != null) { ele.TryPathTo("LightTemplateInherit", true, out subEle); LightTemplateInherit.WriteXML(subEle, master); } if (WaterHeight != null) { ele.TryPathTo("WaterHeight", true, out subEle); WaterHeight.WriteXML(subEle, master); } if (WaterNoiseTexture != null) { ele.TryPathTo("WaterNoiseTexture", true, out subEle); WaterNoiseTexture.WriteXML(subEle, master); } if (Regions != null) { ele.TryPathTo("Regions", true, out subEle); Regions.WriteXML(subEle, master); } if (ImageSpace != null) { ele.TryPathTo("ImageSpace", true, out subEle); ImageSpace.WriteXML(subEle, master); } if (Unknown != null) { ele.TryPathTo("Unknown", true, out subEle); Unknown.WriteXML(subEle, master); } if (EncounterZone != null) { ele.TryPathTo("EncounterZone", true, out subEle); EncounterZone.WriteXML(subEle, master); } if (Climate != null) { ele.TryPathTo("Climate", true, out subEle); Climate.WriteXML(subEle, master); } if (Water != null) { ele.TryPathTo("Water", true, out subEle); Water.WriteXML(subEle, master); } if (Owner != null) { ele.TryPathTo("Owner", true, out subEle); Owner.WriteXML(subEle, master); } if (FactionRank != null) { ele.TryPathTo("FactionRank", true, out subEle); FactionRank.WriteXML(subEle, master); } if (AcousticSpace != null) { ele.TryPathTo("AcousticSpace", true, out subEle); AcousticSpace.WriteXML(subEle, master); } if (Unused != null) { ele.TryPathTo("Unused", true, out subEle); Unused.WriteXML(subEle, master); } if (MusicType != null) { ele.TryPathTo("MusicType", true, out subEle); MusicType.WriteXML(subEle, master); } }
public override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (EditorID != null) { ele.TryPathTo("EditorID", true, out subEle); EditorID.WriteXML(subEle, master); } if (ImageSpaceModifierSunrise != null) { ele.TryPathTo("ImageSpaceModifier/Sunrise", true, out subEle); ImageSpaceModifierSunrise.WriteXML(subEle, master); } if (ImageSpaceModifierDay != null) { ele.TryPathTo("ImageSpaceModifier/Day", true, out subEle); ImageSpaceModifierDay.WriteXML(subEle, master); } if (ImageSpaceModifierSunset != null) { ele.TryPathTo("ImageSpaceModifier/Sunset", true, out subEle); ImageSpaceModifierSunset.WriteXML(subEle, master); } if (ImageSpaceModifierNight != null) { ele.TryPathTo("ImageSpaceModifier/Night", true, out subEle); ImageSpaceModifierNight.WriteXML(subEle, master); } if (ImageSpaceModifierHighNoon != null) { ele.TryPathTo("ImageSpaceModifier/HighNoon", true, out subEle); ImageSpaceModifierHighNoon.WriteXML(subEle, master); } if (ImageSpaceModifierMidnight != null) { ele.TryPathTo("ImageSpaceModifier/Midnight", true, out subEle); ImageSpaceModifierMidnight.WriteXML(subEle, master); } if (CloudTextureLayer0 != null) { ele.TryPathTo("CloudTexture/Layer0", true, out subEle); CloudTextureLayer0.WriteXML(subEle, master); } if (CloudTextureLayer1 != null) { ele.TryPathTo("CloudTexture/Layer1", true, out subEle); CloudTextureLayer1.WriteXML(subEle, master); } if (CloudTextureLayer2 != null) { ele.TryPathTo("CloudTexture/Layer2", true, out subEle); CloudTextureLayer2.WriteXML(subEle, master); } if (CloudTextureLayer3 != null) { ele.TryPathTo("CloudTexture/Layer3", true, out subEle); CloudTextureLayer3.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.WriteXML(subEle, master); } if (Unknown != null) { ele.TryPathTo("Unknown", true, out subEle); Unknown.WriteXML(subEle, master); } if (CloudLayerSpeed != null) { ele.TryPathTo("CloudLayerSpeed", true, out subEle); CloudLayerSpeed.WriteXML(subEle, master); } if (CloudLayerColors != null) { ele.TryPathTo("CloudLayerColors", true, out subEle); CloudLayerColors.WriteXML(subEle, master); } if (EnvironmentalColors != null) { ele.TryPathTo("EnvironmentalColors", true, out subEle); EnvironmentalColors.WriteXML(subEle, master); } if (WeatherFogDistance != null) { ele.TryPathTo("WeatherFogDistance", true, out subEle); WeatherFogDistance.WriteXML(subEle, master); } if (Unused != null) { ele.TryPathTo("Unused", true, out subEle); Unused.WriteXML(subEle, master); } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.WriteXML(subEle, master); } if (Sounds != null) { ele.TryPathTo("Sounds", true, out subEle); List <string> xmlNames = new List <string> { "Sound" }; int i = 0; foreach (var entry in Sounds) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } }
public override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (EditorID != null) { ele.TryPathTo("EditorID", true, out subEle); EditorID.WriteXML(subEle, master); } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.WriteXML(subEle, master); } if (Location1 != null) { ele.TryPathTo("Location1", true, out subEle); Location1.WriteXML(subEle, master); } if (Location2 != null) { ele.TryPathTo("Location2", true, out subEle); Location2.WriteXML(subEle, master); } if (Schedule != null) { ele.TryPathTo("Schedule", true, out subEle); Schedule.WriteXML(subEle, master); } if (Target1 != null) { ele.TryPathTo("Target1", true, out subEle); Target1.WriteXML(subEle, master); } if (Conditions != null) { ele.TryPathTo("Conditions", true, out subEle); List <string> xmlNames = new List <string> { "Condition" }; int i = 0; foreach (var entry in Conditions) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } if (IdleFlags != null) { ele.TryPathTo("Idle/Flags", true, out subEle); IdleFlags.WriteXML(subEle, master); } if (IdleCount != null) { ele.TryPathTo("Idle/Count", true, out subEle); IdleCount.WriteXML(subEle, master); } if (IdleTimerSetting != null) { ele.TryPathTo("Idle/TimerSetting", true, out subEle); IdleTimerSetting.WriteXML(subEle, master); } if (IdleAnimations != null) { ele.TryPathTo("Idle/Animations", true, out subEle); IdleAnimations.WriteXML(subEle, master); } if (Unused != null) { ele.TryPathTo("Unused", true, out subEle); Unused.WriteXML(subEle, master); } if (CombatStyle != null) { ele.TryPathTo("CombatStyle", true, out subEle); CombatStyle.WriteXML(subEle, master); } if (EatMarker != null) { ele.TryPathTo("EatMarker", true, out subEle); EatMarker.WriteXML(subEle, master); } if (EscortDistance != null) { ele.TryPathTo("EscortDistance", true, out subEle); EscortDistance.WriteXML(subEle, master); } if (FollowDistance_StartLocation_TriggerRadius != null) { ele.TryPathTo("FollowDistance_StartLocation_TriggerRadius", true, out subEle); FollowDistance_StartLocation_TriggerRadius.WriteXML(subEle, master); } if (PatrolIsRepeatable != null) { ele.TryPathTo("PatrolIsRepeatable", true, out subEle); PatrolIsRepeatable.WriteXML(subEle, master); } if (UseWeaponData != null) { ele.TryPathTo("UseWeaponData", true, out subEle); UseWeaponData.WriteXML(subEle, master); } if (Target2 != null) { ele.TryPathTo("Target2", true, out subEle); Target2.WriteXML(subEle, master); } if (UseItemMarker != null) { ele.TryPathTo("UseItemMarker", true, out subEle); UseItemMarker.WriteXML(subEle, master); } if (AmbushMarker != null) { ele.TryPathTo("AmbushMarker", true, out subEle); AmbushMarker.WriteXML(subEle, master); } if (DialogData != null) { ele.TryPathTo("DialogData", true, out subEle); DialogData.WriteXML(subEle, master); } if (DummyIgnore != null) { ele.TryPathTo("DummyIgnore", true, out subEle); DummyIgnore.WriteXML(subEle, master); } if (OnBegin != null) { ele.TryPathTo("OnBegin", true, out subEle); OnBegin.WriteXML(subEle, master); } if (OnEnd != null) { ele.TryPathTo("OnEnd", true, out subEle); OnEnd.WriteXML(subEle, master); } if (OnChange != null) { ele.TryPathTo("OnChange", true, out subEle); OnChange.WriteXML(subEle, master); } }