コード例 #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
 public SoundDataShort(string Tag = null)
     : base(Tag)
 {
     MinAttenuationDistance        = new Byte();
     MaxAttenuationDistance        = new Byte();
     FrequencyAdjustmentPercentage = new SByte();
     Unused               = new Byte();
     SoundDataFlags       = new SoundDataFlags();
     StaticAttenuationcdB = new Int16();
     StopTime             = new Byte();
     StartTime            = new Byte();
 }
コード例 #3
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();
        }
コード例 #4
0
 public SoundData(string Tag = null)
     : base(Tag)
 {
     MinAttenuationDistance        = new Byte();
     MaxAttenuationDistance        = new Byte();
     FrequencyAdjustmentPercentage = new SByte();
     Unused                   = new Byte();
     SoundDataFlags           = new SoundDataFlags();
     StaticAttenuationcdB     = new Int16();
     StopTime                 = new Byte();
     StartTime                = new Byte();
     AttenuationCurvePoint1   = new Int16();
     AttenuationCurvePoint2   = new Int16();
     AttenuationCurvePoint3   = new Int16();
     AttenuationCurvePoint4   = new Int16();
     AttenuationCurvePoint5   = new Int16();
     ReverbAttenuationControl = new Int16();
     Priority                 = new Int32();
     Unknown                  = new byte[8];
 }
コード例 #5
0
 public SoundData(Byte MinAttenuationDistance, Byte MaxAttenuationDistance, SByte FrequencyAdjustmentPercentage, Byte Unused, SoundDataFlags SoundDataFlags, Int16 StaticAttenuationcdB, Byte StopTime, Byte StartTime, Int16 AttenuationCurvePoint1, Int16 AttenuationCurvePoint2, Int16 AttenuationCurvePoint3, Int16 AttenuationCurvePoint4, Int16 AttenuationCurvePoint5, Int16 ReverbAttenuationControl, Int32 Priority, Byte[] Unknown)
 {
     this.MinAttenuationDistance        = MinAttenuationDistance;
     this.MaxAttenuationDistance        = MaxAttenuationDistance;
     this.FrequencyAdjustmentPercentage = FrequencyAdjustmentPercentage;
     this.Unused                   = Unused;
     this.SoundDataFlags           = SoundDataFlags;
     this.StaticAttenuationcdB     = StaticAttenuationcdB;
     this.StopTime                 = StopTime;
     this.StartTime                = StartTime;
     this.AttenuationCurvePoint1   = AttenuationCurvePoint1;
     this.AttenuationCurvePoint2   = AttenuationCurvePoint2;
     this.AttenuationCurvePoint3   = AttenuationCurvePoint3;
     this.AttenuationCurvePoint4   = AttenuationCurvePoint4;
     this.AttenuationCurvePoint5   = AttenuationCurvePoint5;
     this.ReverbAttenuationControl = ReverbAttenuationControl;
     this.Priority                 = Priority;
     this.Unknown                  = Unknown;
 }
コード例 #6
0
 public SoundDataShort(Byte MinAttenuationDistance, Byte MaxAttenuationDistance, SByte FrequencyAdjustmentPercentage, Byte Unused, SoundDataFlags SoundDataFlags, Int16 StaticAttenuationcdB, Byte StopTime, Byte StartTime)
 {
     this.MinAttenuationDistance        = MinAttenuationDistance;
     this.MaxAttenuationDistance        = MaxAttenuationDistance;
     this.FrequencyAdjustmentPercentage = FrequencyAdjustmentPercentage;
     this.Unused               = Unused;
     this.SoundDataFlags       = SoundDataFlags;
     this.StaticAttenuationcdB = StaticAttenuationcdB;
     this.StopTime             = StopTime;
     this.StartTime            = StartTime;
 }