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 (Description != null) { ele.TryPathTo("Description", true, out subEle); Description.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (ShortName != null) { ele.TryPathTo("ShortName", true, out subEle); ShortName.WriteXML(subEle, master); } }
public override void WriteXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (Index != null) { ele.TryPathTo("Index", true, out subEle); Index.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.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 (ObjectBounds != null) { ele.TryPathTo("ObjectBounds", true, out subEle); ObjectBounds.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.WriteXML(subEle, master); } if (Script != null) { ele.TryPathTo("Script", true, out subEle); Script.WriteXML(subEle, master); } if (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.WriteXML(subEle, master); } if (FadeValue != null) { ele.TryPathTo("FadeValue", true, out subEle); FadeValue.WriteXML(subEle, master); } if (Sound != null) { ele.TryPathTo("Sound", true, out subEle); Sound.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 (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (TextureSet != null) { ele.TryPathTo("TextureSet", true, out subEle); TextureSet.WriteXML(subEle, master); } if (HavokData != null) { ele.TryPathTo("HavokData", true, out subEle); HavokData.WriteXML(subEle, master); } if (TextureSpecularExponent != null) { ele.TryPathTo("TextureSpecularExponent", true, out subEle); TextureSpecularExponent.WriteXML(subEle, master); } if (Grasses != null) { ele.TryPathTo("Grasses", true, out subEle); List <string> xmlNames = new List <string> { "Grass" }; int i = 0; foreach (var entry in Grasses) { 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 (ObjectBounds != null) { ele.TryPathTo("ObjectBounds", true, out subEle); ObjectBounds.WriteXML(subEle, master); } if (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (PickUpSound != null) { ele.TryPathTo("PickUpSound", true, out subEle); PickUpSound.WriteXML(subEle, master); } if (DropSound != null) { ele.TryPathTo("DropSound", true, out subEle); DropSound.WriteXML(subEle, master); } if (AbsoluteValue != null) { ele.TryPathTo("AbsoluteValue", true, out subEle); AbsoluteValue.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 (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (Description != null) { ele.TryPathTo("Description", true, out subEle); Description.WriteXML(subEle, master); } if (Locations != null) { ele.TryPathTo("Locations", true, out subEle); List <string> xmlNames = new List <string> { "Location" }; int i = 0; foreach (var entry in Locations) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } if (LoadScreenType != null) { ele.TryPathTo("LoadScreenType", true, out subEle); LoadScreenType.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 (ObjectBounds != null) { ele.TryPathTo("ObjectBounds", true, out subEle); ObjectBounds.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (SpeedtreeSeeds != null) { ele.TryPathTo("SpeedtreeSeeds", true, out subEle); SpeedtreeSeeds.WriteXML(subEle, master); } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.WriteXML(subEle, master); } if (BillboardDimensions != null) { ele.TryPathTo("BillboardDimensions", true, out subEle); BillboardDimensions.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 (ObjectBounds != null) { ele.TryPathTo("ObjectBounds", true, out subEle); ObjectBounds.WriteXML(subEle, master); } if (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (Script != null) { ele.TryPathTo("Script", true, out subEle); Script.WriteXML(subEle, master); } if (PickUpSound != null) { ele.TryPathTo("PickUpSound", true, out subEle); PickUpSound.WriteXML(subEle, master); } if (DropSound != null) { ele.TryPathTo("DropSound", true, out subEle); DropSound.WriteXML(subEle, master); } if (TextureFace != null) { ele.TryPathTo("Texture/Face", true, out subEle); TextureFace.WriteXML(subEle, master); } if (TextureBack != null) { ele.TryPathTo("Texture/Back", true, out subEle); TextureBack.WriteXML(subEle, master); } if (CardData != null) { ele.TryPathTo("CardData", true, out subEle); CardData.WriteXML(subEle, master); } if (Value != null) { ele.TryPathTo("Value", true, out subEle); Value.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 (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (MapColor != null) { ele.TryPathTo("MapColor", true, out subEle); MapColor.WriteXML(subEle, master); } if (Worldspace != null) { ele.TryPathTo("Worldspace", true, out subEle); Worldspace.WriteXML(subEle, master); } if (Areas != null) { ele.TryPathTo("Areas", true, out subEle); List <string> xmlNames = new List <string> { "Area" }; int i = 0; foreach (var entry in Areas) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } if (DataEntries != null) { ele.TryPathTo("DataEntries", true, out subEle); List <string> xmlNames = new List <string> { "DataEntry" }; int i = 0; foreach (var entry in DataEntries) { 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 (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (Description != null) { ele.TryPathTo("Description", true, out subEle); Description.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (Requirements != null) { ele.TryPathTo("Requirements", true, out subEle); List <string> xmlNames = new List <string> { "Requirement" }; int i = 0; foreach (var entry in Requirements) { 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 (Effects != null) { ele.TryPathTo("Effects", true, out subEle); List <string> xmlNames = new List <string> { "Effect" }; int i = 0; Effects.Sort(); foreach (var entry in Effects) { 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 (ObjectBounds != null) { ele.TryPathTo("ObjectBounds", true, out subEle); ObjectBounds.WriteXML(subEle, master); } if (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (Script != null) { ele.TryPathTo("Script", true, out subEle); Script.WriteXML(subEle, master); } if (Destructable != null) { ele.TryPathTo("Destructable", true, out subEle); Destructable.WriteXML(subEle, master); } if (PickUpSound != null) { ele.TryPathTo("PickUpSound", true, out subEle); PickUpSound.WriteXML(subEle, master); } if (DropSound != null) { ele.TryPathTo("DropSound", true, out subEle); DropSound.WriteXML(subEle, master); } if (EquipmentType != null) { ele.TryPathTo("EquipmentType", true, out subEle); EquipmentType.WriteXML(subEle, master); } if (Weight != null) { ele.TryPathTo("Weight", true, out subEle); Weight.WriteXML(subEle, master); } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.WriteXML(subEle, master); } if (Effects != null) { ele.TryPathTo("Effects", true, out subEle); List <string> xmlNames = new List <string> { "Effect" }; int i = 0; foreach (var entry in Effects) { 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 (ObjectBounds != null) { ele.TryPathTo("ObjectBounds", true, out subEle); ObjectBounds.WriteXML(subEle, master); } if (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (PickUpSound != null) { ele.TryPathTo("PickUpSound", true, out subEle); PickUpSound.WriteXML(subEle, master); } if (DropSound != null) { ele.TryPathTo("DropSound", true, out subEle); DropSound.WriteXML(subEle, master); } if (Type != null) { ele.TryPathTo("Type", true, out subEle); Type.WriteXML(subEle, master); } if (Quests != null) { ele.TryPathTo("Quests", true, out subEle); List <string> xmlNames = new List <string> { "Quest" }; int i = 0; foreach (var entry in Quests) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } if (Image != null) { ele.TryPathTo("Image", true, out subEle); Image.WriteXML(subEle, master); } WriteEntryDataXML(ele, master); if (Audio != null) { ele.TryPathTo("Audio", true, out subEle); Audio.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 (Script != null) { ele.TryPathTo("Script", true, out subEle); Script.WriteXML(subEle, master); } if (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.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 (Stages != null) { ele.TryPathTo("Stages", true, out subEle); List <string> xmlNames = new List <string> { "Stage" }; int i = 0; foreach (var entry in Stages) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } if (Objectives != null) { ele.TryPathTo("Objectives", true, out subEle); List <string> xmlNames = new List <string> { "Objective" }; int i = 0; foreach (var entry in Objectives) { 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 (ObjectBounds != null) { ele.TryPathTo("ObjectBounds", true, out subEle); ObjectBounds.WriteXML(subEle, master); } if (Name != null) { ele.TryPathTo("Name", true, out subEle); Name.WriteXML(subEle, master); } if (Model != null) { ele.TryPathTo("Model", true, out subEle); Model.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (Script != null) { ele.TryPathTo("Script", true, out subEle); Script.WriteXML(subEle, master); } if (Destructable != null) { ele.TryPathTo("Destructable", true, out subEle); Destructable.WriteXML(subEle, master); } if (PickUpSound != null) { ele.TryPathTo("PickUpSound", true, out subEle); PickUpSound.WriteXML(subEle, master); } if (DropSound != null) { ele.TryPathTo("DropSound", true, out subEle); DropSound.WriteXML(subEle, master); } if (Data != null) { ele.TryPathTo("Data", true, out subEle); Data.WriteXML(subEle, master); } if (Looping_RandomSound != null) { ele.TryPathTo("Looping_RandomSound", true, out subEle); Looping_RandomSound.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 (EncounterZone != null) { ele.TryPathTo("EncounterZone", true, out subEle); EncounterZone.WriteXML(subEle, master); } if (ParentWorldspace != null) { ele.TryPathTo("ParentWorldspace", true, out subEle); ParentWorldspace.WriteXML(subEle, master); } if (ParentWorldspaceFlags != null) { ele.TryPathTo("ParentWorldspaceFlags", true, out subEle); ParentWorldspaceFlags.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 (LODWaterType != null) { ele.TryPathTo("LODWater/Type", true, out subEle); LODWaterType.WriteXML(subEle, master); } if (LODWaterHeight != null) { ele.TryPathTo("LODWater/Height", true, out subEle); LODWaterHeight.WriteXML(subEle, master); } if (LandData != null) { ele.TryPathTo("LandData", true, out subEle); LandData.WriteXML(subEle, master); } if (LargeIcon != null) { ele.TryPathTo("Icon/Large", true, out subEle); LargeIcon.WriteXML(subEle, master); } if (SmallIcon != null) { ele.TryPathTo("Icon/Small", true, out subEle); SmallIcon.WriteXML(subEle, master); } if (MapData != null) { ele.TryPathTo("MapData", true, out subEle); MapData.WriteXML(subEle, master); } if (WorldMapOffsetData != null) { ele.TryPathTo("WorldMapOffsetData", true, out subEle); WorldMapOffsetData.WriteXML(subEle, master); } if (ImageSpace != null) { ele.TryPathTo("ImageSpace", true, out subEle); ImageSpace.WriteXML(subEle, master); } if (WorldspaceFlags != null) { ele.TryPathTo("WorldspaceFlags", true, out subEle); WorldspaceFlags.WriteXML(subEle, master); } if (MinObjectBounds != null) { ele.TryPathTo("ObjectBounds/Min", true, out subEle); MinObjectBounds.WriteXML(subEle, master); } if (MaxObjectBounds != null) { ele.TryPathTo("ObjectBounds/Max", true, out subEle); MaxObjectBounds.WriteXML(subEle, master); } if (Music != null) { ele.TryPathTo("Music", true, out subEle); Music.WriteXML(subEle, master); } if (CanopyShadow != null) { ele.TryPathTo("CanopyShadow", true, out subEle); CanopyShadow.WriteXML(subEle, master); } if (WaterNoiseTexture != null) { ele.TryPathTo("WaterNoiseTexture", true, out subEle); WaterNoiseTexture.WriteXML(subEle, master); } if (SwappedImpacts != null) { ele.TryPathTo("SwappedImpacts", true, out subEle); List <string> xmlNames = new List <string> { "SwappedImpact" }; int i = 0; foreach (var entry in SwappedImpacts) { i = i % xmlNames.Count(); XElement newEle = new XElement(xmlNames[i]); entry.WriteXML(newEle, master); subEle.Add(newEle); i++; } } if (FootstepMaterial != null) { ele.TryPathTo("FootstepMaterial", true, out subEle); FootstepMaterial.WriteXML(subEle, master); } if (OffsetDataSize != null) { ele.TryPathTo("OffsetDataSize", true, out subEle); OffsetDataSize.WriteXML(subEle, master); } if (OffsetData != null) { ele.TryPathTo("OffsetData", true, out subEle); OffsetData.WriteXML(subEle, master); } }