Exemple #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 (Type != null)
            {
                ele.TryPathTo("Type", true, out subEle);
                Type.WriteXML(subEle, master);
            }
            if (Loop_Battle_DayOuter != null)
            {
                ele.TryPathTo("Loop_Battle_DayOuter", true, out subEle);
                Loop_Battle_DayOuter.WriteXML(subEle, master);
            }
            if (Explore_DayMiddle != null)
            {
                ele.TryPathTo("Explore_DayMiddle", true, out subEle);
                Explore_DayMiddle.WriteXML(subEle, master);
            }
            if (Suspense_DayInner != null)
            {
                ele.TryPathTo("Suspense_DayInner", true, out subEle);
                Suspense_DayInner.WriteXML(subEle, master);
            }
            if (NightOuter != null)
            {
                ele.TryPathTo("NightOuter", true, out subEle);
                NightOuter.WriteXML(subEle, master);
            }
            if (NightMiddle != null)
            {
                ele.TryPathTo("NightMiddle", true, out subEle);
                NightMiddle.WriteXML(subEle, master);
            }
            if (NightInner != null)
            {
                ele.TryPathTo("NightInner", true, out subEle);
                NightInner.WriteXML(subEle, master);
            }
            if (DecibelLoop_Battle_DayOuter != null)
            {
                ele.TryPathTo("Decibel/Loop_Battle_DayOuter", true, out subEle);
                DecibelLoop_Battle_DayOuter.WriteXML(subEle, master);
            }
            if (DecibelExplore_DayMiddle != null)
            {
                ele.TryPathTo("Decibel/Explore_DayMiddle", true, out subEle);
                DecibelExplore_DayMiddle.WriteXML(subEle, master);
            }
            if (DecibelSuspense_DayInner != null)
            {
                ele.TryPathTo("Decibel/Suspense_DayInner", true, out subEle);
                DecibelSuspense_DayInner.WriteXML(subEle, master);
            }
            if (DecibelNightOuter != null)
            {
                ele.TryPathTo("Decibel/NightOuter", true, out subEle);
                DecibelNightOuter.WriteXML(subEle, master);
            }
            if (DecibelNightMiddle != null)
            {
                ele.TryPathTo("Decibel/NightMiddle", true, out subEle);
                DecibelNightMiddle.WriteXML(subEle, master);
            }
            if (DecibelNightInner != null)
            {
                ele.TryPathTo("Decibel/NightInner", true, out subEle);
                DecibelNightInner.WriteXML(subEle, master);
            }
            if (DayOuterBoundary != null)
            {
                ele.TryPathTo("Boundaries/DayOuter", true, out subEle);
                DayOuterBoundary.WriteXML(subEle, master);
            }
            if (DayMiddleBoundary != null)
            {
                ele.TryPathTo("Boundaries/DayMiddle", true, out subEle);
                DayMiddleBoundary.WriteXML(subEle, master);
            }
            if (DayInnerBoundary != null)
            {
                ele.TryPathTo("Boundaries/DayInner", true, out subEle);
                DayInnerBoundary.WriteXML(subEle, master);
            }
            if (NightOuterBoundary != null)
            {
                ele.TryPathTo("Boundaries/NightOuter", true, out subEle);
                NightOuterBoundary.WriteXML(subEle, master);
            }
            if (NightMiddleBoundary != null)
            {
                ele.TryPathTo("Boundaries/NightMiddle", true, out subEle);
                NightMiddleBoundary.WriteXML(subEle, master);
            }
            if (NightInnerBoundary != null)
            {
                ele.TryPathTo("Boundaries/NightInner", true, out subEle);
                NightInnerBoundary.WriteXML(subEle, master);
            }
            if (EnableFlags != null)
            {
                ele.TryPathTo("EnableFlags", true, out subEle);
                EnableFlags.WriteXML(subEle, master);
            }
            if (WaitTime_MinTimeOn_DaytimeMin != null)
            {
                ele.TryPathTo("WaitTime_MinTimeOn_DaytimeMin", true, out subEle);
                WaitTime_MinTimeOn_DaytimeMin.WriteXML(subEle, master);
            }
            if (LoopFadeOut_LoopingRandomCrossfadeOverlap_NighttimeMin != null)
            {
                ele.TryPathTo("LoopFadeOut_LoopingRandomCrossfadeOverlap_NighttimeMin", true, out subEle);
                LoopFadeOut_LoopingRandomCrossfadeOverlap_NighttimeMin.WriteXML(subEle, master);
            }
            if (RecoveryTime_LayerCrossfadeTime_DaytimeMax != null)
            {
                ele.TryPathTo("RecoveryTime_LayerCrossfadeTime_DaytimeMax", true, out subEle);
                RecoveryTime_LayerCrossfadeTime_DaytimeMax.WriteXML(subEle, master);
            }
            if (NighttimeMax != null)
            {
                ele.TryPathTo("NighttimeMax", true, out subEle);
                NighttimeMax.WriteXML(subEle, master);
            }
            if (Intro_Daytime != null)
            {
                ele.TryPathTo("Intro_Daytime", true, out subEle);
                Intro_Daytime.WriteXML(subEle, master);
            }
            if (Outro_Nighttime != null)
            {
                ele.TryPathTo("Outro_Nighttime", true, out subEle);
                Outro_Nighttime.WriteXML(subEle, master);
            }
            if (Unknown != null)
            {
                ele.TryPathTo("Unknown", true, out subEle);
                Unknown.WriteXML(subEle, master);
            }
        }