Пример #1
0
        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("Filename", false, out subEle))
            {
                if (Filename == null)
                {
                    Filename = new SimpleSubrecord <String>();
                }

                Filename.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Decibel", false, out subEle))
            {
                if (Decibel == null)
                {
                    Decibel = new SimpleSubrecord <Single>();
                }

                Decibel.ReadXML(subEle, master);
            }
        }
Пример #2
0
        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("Filename", false, out subEle))
            {
                if (Filename == null)
                {
                    Filename = new SimpleSubrecord <String>();
                }

                Filename.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("RandomChance", false, out subEle))
            {
                if (RandomChance == null)
                {
                    RandomChance = new SimpleSubrecord <Byte>();
                }

                RandomChance.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("SoundData", false, out subEle))
            {
                if (SoundData == null)
                {
                    SoundData = new SoundData();
                }

                SoundData.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("SoundDataShort", false, out subEle))
            {
                if (SoundDataShort == null)
                {
                    SoundDataShort = new SoundDataShort();
                }

                SoundDataShort.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("AttenuationCurve", false, out subEle))
            {
                if (AttenuationCurve == null)
                {
                    AttenuationCurve = new SoundAttenuation();
                }

                AttenuationCurve.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("ReverbAttenuationControl", false, out subEle))
            {
                if (ReverbAttenuationControl == null)
                {
                    ReverbAttenuationControl = new SimpleSubrecord <Int16>();
                }

                ReverbAttenuationControl.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("SoundPriority", false, out subEle))
            {
                if (SoundPriority == null)
                {
                    SoundPriority = new SimpleSubrecord <Int32>();
                }

                SoundPriority.ReadXML(subEle, master);
            }
        }