示例#1
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Sky/Upper", false, out subEle))
            {
                SkyUpper.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Fog", false, out subEle))
            {
                Fog.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Unused1", false, out subEle))
            {
                Unused1.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Ambient", false, out subEle))
            {
                Ambient.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Sunlight", false, out subEle))
            {
                Sunlight.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Sun", false, out subEle))
            {
                Sun.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Stars", false, out subEle))
            {
                Stars.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Sky/Lower", false, out subEle))
            {
                SkyLower.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Horizon", false, out subEle))
            {
                Horizon.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Unused2", false, out subEle))
            {
                Unused2.ReadXML(subEle, master);
            }
        }