public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Description", false, out subEle)) { if (Description == null) { Description = new SimpleSubrecord <String>(); } Description.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("ShortName", false, out subEle)) { if (ShortName == null) { ShortName = new SimpleSubrecord <String>(); } ShortName.ReadXML(subEle, master); } }
public override void ReadXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("Index", false, out subEle)) { if (Index == null) { Index = new SimpleSubrecord <BodyPartIndex>(); } Index.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("MapColor", false, out subEle)) { if (MapColor == null) { MapColor = new SimpleSubrecord <Color>(); } MapColor.ReadXML(subEle, master); } if (ele.TryPathTo("Worldspace", false, out subEle)) { if (Worldspace == null) { Worldspace = new RecordReference(); } Worldspace.ReadXML(subEle, master); } if (ele.TryPathTo("Areas", false, out subEle)) { if (Areas == null) { Areas = new List <RegionArea>(); } foreach (XElement e in subEle.Elements()) { RegionArea tempRPLI = new RegionArea(); tempRPLI.ReadXML(e, master); Areas.Add(tempRPLI); } } if (ele.TryPathTo("DataEntries", false, out subEle)) { if (DataEntries == null) { DataEntries = new List <RegionDataEntry>(); } foreach (XElement e in subEle.Elements()) { RegionDataEntry tempRDAT = new RegionDataEntry(); tempRDAT.ReadXML(e, master); DataEntries.Add(tempRDAT); } } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Description", false, out subEle)) { if (Description == null) { Description = new SimpleSubrecord <String>(); } Description.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Requirements", false, out subEle)) { if (Requirements == null) { Requirements = new List <Condition>(); } foreach (XElement e in subEle.Elements()) { Condition tempCTDA = new Condition(); tempCTDA.ReadXML(e, master); Requirements.Add(tempCTDA); } } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new PerkData(); } Data.ReadXML(subEle, master); } if (ele.TryPathTo("Effects", false, out subEle)) { if (Effects == null) { Effects = new List <PerkEffect>(); } foreach (XElement e in subEle.Elements()) { PerkEffect tempPRKE = new PerkEffect(); tempPRKE.ReadXML(e, master); Effects.Add(tempPRKE); } } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Script", false, out subEle)) { if (Script == null) { Script = new RecordReference(); } Script.ReadXML(subEle, master); } if (ele.TryPathTo("Description", false, out subEle)) { if (Description == null) { Description = new SimpleSubrecord <String>(); } Description.ReadXML(subEle, master); } if (ele.TryPathTo("Destructable", false, out subEle)) { if (Destructable == null) { Destructable = new Destructable(); } Destructable.ReadXML(subEle, master); } if (ele.TryPathTo("PickUpSound", false, out subEle)) { if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadXML(subEle, master); } if (ele.TryPathTo("DropSound", false, out subEle)) { if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new BookData(); } Data.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } if (ele.TryPathTo("Script", false, out subEle)) { if (Script == null) { Script = new RecordReference(); } Script.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new LightData(); } Data.ReadXML(subEle, master); } if (ele.TryPathTo("FadeValue", false, out subEle)) { if (FadeValue == null) { FadeValue = new SimpleSubrecord <Single>(); } FadeValue.ReadXML(subEle, master); } if (ele.TryPathTo("Sound", false, out subEle)) { if (Sound == null) { Sound = new RecordReference(); } Sound.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) EditorID = new SimpleSubrecord<String>(); EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) ObjectBounds = new ObjectBounds(); ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) Model = new Model(); Model.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) LargeIcon = new SimpleSubrecord<String>(); LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) SmallIcon = new SimpleSubrecord<String>(); SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("SpeedtreeSeeds", false, out subEle)) { if (SpeedtreeSeeds == null) SpeedtreeSeeds = new SpeedtreeSeeds(); SpeedtreeSeeds.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) Data = new TreeData(); Data.ReadXML(subEle, master); } if (ele.TryPathTo("BillboardDimensions", false, out subEle)) { if (BillboardDimensions == null) BillboardDimensions = new BillboardDimensions(); BillboardDimensions.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("EncounterZone", false, out subEle)) { if (EncounterZone == null) { EncounterZone = new RecordReference(); } EncounterZone.ReadXML(subEle, master); } if (ele.TryPathTo("ParentWorldspace", false, out subEle)) { if (ParentWorldspace == null) { ParentWorldspace = new RecordReference(); } ParentWorldspace.ReadXML(subEle, master); } if (ele.TryPathTo("ParentWorldspaceFlags", false, out subEle)) { if (ParentWorldspaceFlags == null) { ParentWorldspaceFlags = new SimpleSubrecord <ParentWorldspaceFlags>(); } ParentWorldspaceFlags.ReadXML(subEle, master); } if (ele.TryPathTo("Climate", false, out subEle)) { if (Climate == null) { Climate = new RecordReference(); } Climate.ReadXML(subEle, master); } if (ele.TryPathTo("Water", false, out subEle)) { if (Water == null) { Water = new RecordReference(); } Water.ReadXML(subEle, master); } if (ele.TryPathTo("LODWater/Type", false, out subEle)) { if (LODWaterType == null) { LODWaterType = new RecordReference(); } LODWaterType.ReadXML(subEle, master); } if (ele.TryPathTo("LODWater/Height", false, out subEle)) { if (LODWaterHeight == null) { LODWaterHeight = new SimpleSubrecord <Single>(); } LODWaterHeight.ReadXML(subEle, master); } if (ele.TryPathTo("LandData", false, out subEle)) { if (LandData == null) { LandData = new WorldLandData(); } LandData.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("MapData", false, out subEle)) { if (MapData == null) { MapData = new MapData(); } MapData.ReadXML(subEle, master); } if (ele.TryPathTo("WorldMapOffsetData", false, out subEle)) { if (WorldMapOffsetData == null) { WorldMapOffsetData = new WorldMapOffsetData(); } WorldMapOffsetData.ReadXML(subEle, master); } if (ele.TryPathTo("ImageSpace", false, out subEle)) { if (ImageSpace == null) { ImageSpace = new RecordReference(); } ImageSpace.ReadXML(subEle, master); } if (ele.TryPathTo("WorldspaceFlags", false, out subEle)) { if (WorldspaceFlags == null) { WorldspaceFlags = new SimpleSubrecord <WorldspaceFlags>(); } WorldspaceFlags.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds/Min", false, out subEle)) { if (MinObjectBounds == null) { MinObjectBounds = new SimpleSubrecord <XYFloat>(); } MinObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds/Max", false, out subEle)) { if (MaxObjectBounds == null) { MaxObjectBounds = new SimpleSubrecord <XYFloat>(); } MaxObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Music", false, out subEle)) { if (Music == null) { Music = new RecordReference(); } Music.ReadXML(subEle, master); } if (ele.TryPathTo("CanopyShadow", false, out subEle)) { if (CanopyShadow == null) { CanopyShadow = new SimpleSubrecord <String>(); } CanopyShadow.ReadXML(subEle, master); } if (ele.TryPathTo("WaterNoiseTexture", false, out subEle)) { if (WaterNoiseTexture == null) { WaterNoiseTexture = new SimpleSubrecord <String>(); } WaterNoiseTexture.ReadXML(subEle, master); } if (ele.TryPathTo("SwappedImpacts", false, out subEle)) { if (SwappedImpacts == null) { SwappedImpacts = new List <SwappedImpact>(); } foreach (XElement e in subEle.Elements()) { SwappedImpact tempIMPS = new SwappedImpact(); tempIMPS.ReadXML(e, master); SwappedImpacts.Add(tempIMPS); } } if (ele.TryPathTo("FootstepMaterial", false, out subEle)) { if (FootstepMaterial == null) { FootstepMaterial = new FootstepMaterial(); } FootstepMaterial.ReadXML(subEle, master); } if (ele.TryPathTo("OffsetDataSize", false, out subEle)) { if (OffsetDataSize == null) { OffsetDataSize = new SimpleSubrecord <UInt32>(); } OffsetDataSize.ReadXML(subEle, master); } if (ele.TryPathTo("OffsetData", false, out subEle)) { if (OffsetData == null) { OffsetData = new SimpleSubrecord <Byte[]>(); } OffsetData.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Script", false, out subEle)) { if (Script == null) { Script = new RecordReference(); } Script.ReadXML(subEle, master); } if (ele.TryPathTo("Destructable", false, out subEle)) { if (Destructable == null) { Destructable = new Destructable(); } Destructable.ReadXML(subEle, master); } if (ele.TryPathTo("PickUpSound", false, out subEle)) { if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadXML(subEle, master); } if (ele.TryPathTo("DropSound", false, out subEle)) { if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new AmmoData(); } Data.ReadXML(subEle, master); } if (ele.TryPathTo("ExtraData", false, out subEle)) { if (ExtraData == null) { ExtraData = new AmmoExtraData(); } ExtraData.ReadXML(subEle, master); } if (ele.TryPathTo("ShortName", false, out subEle)) { if (ShortName == null) { ShortName = new SimpleSubrecord <String>(); } ShortName.ReadXML(subEle, master); } if (ele.TryPathTo("Abbreviation", false, out subEle)) { if (Abbreviation == null) { Abbreviation = new SimpleSubrecord <String>(); } Abbreviation.ReadXML(subEle, master); } if (ele.TryPathTo("AmmoEffects", false, out subEle)) { if (AmmoEffects == null) { AmmoEffects = new List <RecordReference>(); } foreach (XElement e in subEle.Elements()) { RecordReference tempRCIL = new RecordReference(); tempRCIL.ReadXML(e, master); AmmoEffects.Add(tempRCIL); } } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("PickUpSound", false, out subEle)) { if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadXML(subEle, master); } if (ele.TryPathTo("DropSound", false, out subEle)) { if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadXML(subEle, master); } if (ele.TryPathTo("AbsoluteValue", false, out subEle)) { if (AbsoluteValue == null) { AbsoluteValue = new SimpleSubrecord <UInt32>(); } AbsoluteValue.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("TextureSet", false, out subEle)) { if (TextureSet == null) { TextureSet = new RecordReference(); } TextureSet.ReadXML(subEle, master); } if (ele.TryPathTo("HavokData", false, out subEle)) { if (HavokData == null) { HavokData = new HavokData(); } HavokData.ReadXML(subEle, master); } if (ele.TryPathTo("TextureSpecularExponent", false, out subEle)) { if (TextureSpecularExponent == null) { TextureSpecularExponent = new SimpleSubrecord <Byte>(); } TextureSpecularExponent.ReadXML(subEle, master); } if (ele.TryPathTo("Grasses", false, out subEle)) { if (Grasses == null) { Grasses = new List <RecordReference>(); } foreach (XElement e in subEle.Elements()) { RecordReference tempGNAM = new RecordReference(); tempGNAM.ReadXML(e, master); Grasses.Add(tempGNAM); } } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("PickUpSound", false, out subEle)) { if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadXML(subEle, master); } if (ele.TryPathTo("DropSound", false, out subEle)) { if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadXML(subEle, master); } if (ele.TryPathTo("Type", false, out subEle)) { if (Type == null) { Type = new SimpleSubrecord <NoteType>(); } Type.ReadXML(subEle, master); } if (ele.TryPathTo("Quests", false, out subEle)) { if (Quests == null) { Quests = new List <RecordReference>(); } foreach (XElement e in subEle.Elements()) { RecordReference tempONAM = new RecordReference(); tempONAM.ReadXML(e, master); Quests.Add(tempONAM); } } if (ele.TryPathTo("Image", false, out subEle)) { if (Image == null) { Image = new SimpleSubrecord <String>(); } Image.ReadXML(subEle, master); } ReadEntryDataXML(ele, master); if (ele.TryPathTo("Audio", false, out subEle)) { if (Audio == null) { Audio = new RecordReference(); } Audio.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Script", false, out subEle)) { if (Script == null) { Script = new RecordReference(); } Script.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new QuestData(); } Data.ReadXML(subEle, master); } if (ele.TryPathTo("Conditions", false, out subEle)) { if (Conditions == null) { Conditions = new List <Condition>(); } foreach (XElement e in subEle.Elements()) { Condition tempCTDA = new Condition(); tempCTDA.ReadXML(e, master); Conditions.Add(tempCTDA); } } if (ele.TryPathTo("Stages", false, out subEle)) { if (Stages == null) { Stages = new List <QuestStage>(); } foreach (XElement e in subEle.Elements()) { QuestStage tempINDX = new QuestStage(); tempINDX.ReadXML(e, master); Stages.Add(tempINDX); } } if (ele.TryPathTo("Objectives", false, out subEle)) { if (Objectives == null) { Objectives = new List <QuestObjective>(); } foreach (XElement e in subEle.Elements()) { QuestObjective tempQOBJ = new QuestObjective(); tempQOBJ.ReadXML(e, master); Objectives.Add(tempQOBJ); } } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Script", false, out subEle)) { if (Script == null) { Script = new RecordReference(); } Script.ReadXML(subEle, master); } if (ele.TryPathTo("PickUpSound", false, out subEle)) { if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadXML(subEle, master); } if (ele.TryPathTo("DropSound", false, out subEle)) { if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadXML(subEle, master); } if (ele.TryPathTo("Texture/Face", false, out subEle)) { if (TextureFace == null) { TextureFace = new SimpleSubrecord <String>(); } TextureFace.ReadXML(subEle, master); } if (ele.TryPathTo("Texture/Back", false, out subEle)) { if (TextureBack == null) { TextureBack = new SimpleSubrecord <String>(); } TextureBack.ReadXML(subEle, master); } if (ele.TryPathTo("CardData", false, out subEle)) { if (CardData == null) { CardData = new Card(); } CardData.ReadXML(subEle, master); } if (ele.TryPathTo("Value", false, out subEle)) { if (Value == null) { Value = new SimpleSubrecord <UInt32>(); } Value.ReadXML(subEle, master); } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("ObjectBounds", false, out subEle)) { if (ObjectBounds == null) { ObjectBounds = new ObjectBounds(); } ObjectBounds.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Model", false, out subEle)) { if (Model == null) { Model = new Model(); } Model.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Script", false, out subEle)) { if (Script == null) { Script = new RecordReference(); } Script.ReadXML(subEle, master); } if (ele.TryPathTo("Destructable", false, out subEle)) { if (Destructable == null) { Destructable = new Destructable(); } Destructable.ReadXML(subEle, master); } if (ele.TryPathTo("PickUpSound", false, out subEle)) { if (PickUpSound == null) { PickUpSound = new RecordReference(); } PickUpSound.ReadXML(subEle, master); } if (ele.TryPathTo("DropSound", false, out subEle)) { if (DropSound == null) { DropSound = new RecordReference(); } DropSound.ReadXML(subEle, master); } if (ele.TryPathTo("EquipmentType", false, out subEle)) { if (EquipmentType == null) { EquipmentType = new SimpleSubrecord <EquipmentType>(); } EquipmentType.ReadXML(subEle, master); } if (ele.TryPathTo("Weight", false, out subEle)) { if (Weight == null) { Weight = new SimpleSubrecord <Single>(); } Weight.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new IngestibleData(); } Data.ReadXML(subEle, master); } if (ele.TryPathTo("Effects", false, out subEle)) { if (Effects == null) { Effects = new List <Effect>(); } foreach (XElement e in subEle.Elements()) { Effect tempEFID = new Effect(); tempEFID.ReadXML(e, master); Effects.Add(tempEFID); } } }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Name", false, out subEle)) { if (Name == null) { Name = new SimpleSubrecord <String>(); } Name.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Script", false, out subEle)) { if (Script == null) { Script = new RecordReference(); } Script.ReadXML(subEle, master); } if (ele.TryPathTo("Description", false, out subEle)) { if (Description == null) { Description = new SimpleSubrecord <String>(); } Description.ReadXML(subEle, master); } if (ele.TryPathTo("Data", false, out subEle)) { if (Data == null) { Data = new ChallengeData(); } Data.ReadXML(subEle, master); } ReadValue1XML(ele, master); ReadValue2XML(ele, master); }
public override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("EditorID", false, out subEle)) { if (EditorID == null) { EditorID = new SimpleSubrecord <String>(); } EditorID.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Large", false, out subEle)) { if (LargeIcon == null) { LargeIcon = new SimpleSubrecord <String>(); } LargeIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Icon/Small", false, out subEle)) { if (SmallIcon == null) { SmallIcon = new SimpleSubrecord <String>(); } SmallIcon.ReadXML(subEle, master); } if (ele.TryPathTo("Description", false, out subEle)) { if (Description == null) { Description = new SimpleSubrecord <String>(); } Description.ReadXML(subEle, master); } if (ele.TryPathTo("Locations", false, out subEle)) { if (Locations == null) { Locations = new List <LoadScreenLocation>(); } foreach (XElement e in subEle.Elements()) { LoadScreenLocation tempLNAM = new LoadScreenLocation(); tempLNAM.ReadXML(e, master); Locations.Add(tempLNAM); } } if (ele.TryPathTo("LoadScreenType", false, out subEle)) { if (LoadScreenType == null) { LoadScreenType = new RecordReference(); } LoadScreenType.ReadXML(subEle, master); } }