コード例 #1
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("Attenuation/Distance/Min", true, out subEle);
            subEle.Value = MinAttenuationDistance.ToString();

            ele.TryPathTo("Attenuation/Distance/Max", true, out subEle);
            subEle.Value = MaxAttenuationDistance.ToString();

            ele.TryPathTo("FrequencyAdjustmentPercentage", true, out subEle);
            subEle.Value = FrequencyAdjustmentPercentage.ToString();

            WriteUnusedXML(ele, master);

            ele.TryPathTo("Flags", true, out subEle);
            subEle.Value = SoundDataFlags.ToString();

            ele.TryPathTo("Attenuation/StaticAttenuationcdB", true, out subEle);
            subEle.Value = StaticAttenuationcdB.ToString();

            ele.TryPathTo("Time/Stop", true, out subEle);
            subEle.Value = StopTime.ToString();

            ele.TryPathTo("Time/Start", true, out subEle);
            subEle.Value = StartTime.ToString();
        }
コード例 #2
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("Attenuation/Distance/Min", true, out subEle);
            subEle.Value = MinAttenuationDistance.ToString();

            ele.TryPathTo("Attenuation/Distance/Max", true, out subEle);
            subEle.Value = MaxAttenuationDistance.ToString();

            ele.TryPathTo("FrequencyAdjustmentPercentage", true, out subEle);
            subEle.Value = FrequencyAdjustmentPercentage.ToString();

            WriteUnusedXML(ele, master);

            ele.TryPathTo("Flags", true, out subEle);
            subEle.Value = SoundDataFlags.ToString();

            ele.TryPathTo("Attenuation/StaticAttenuationcdB", true, out subEle);
            subEle.Value = StaticAttenuationcdB.ToString();

            ele.TryPathTo("Time/Stop", true, out subEle);
            subEle.Value = StopTime.ToString();

            ele.TryPathTo("Time/Start", true, out subEle);
            subEle.Value = StartTime.ToString();

            ele.TryPathTo("Attenuation/Curve/Point1", true, out subEle);
            subEle.Value = AttenuationCurvePoint1.ToString();

            ele.TryPathTo("Attenuation/Curve/Point2", true, out subEle);
            subEle.Value = AttenuationCurvePoint2.ToString();

            ele.TryPathTo("Attenuation/Curve/Point3", true, out subEle);
            subEle.Value = AttenuationCurvePoint3.ToString();

            ele.TryPathTo("Attenuation/Curve/Point4", true, out subEle);
            subEle.Value = AttenuationCurvePoint4.ToString();

            ele.TryPathTo("Attenuation/Curve/Point5", true, out subEle);
            subEle.Value = AttenuationCurvePoint5.ToString();

            ele.TryPathTo("Attenuation/ReverbAttenuationControl", true, out subEle);
            subEle.Value = ReverbAttenuationControl.ToString();

            ele.TryPathTo("Priority", true, out subEle);
            subEle.Value = Priority.ToString();

            ele.TryPathTo("Unknown", true, out subEle);
            subEle.Value = Unknown.ToHex();
        }