예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }