31 lines
No EOL
843 B
C#
31 lines
No EOL
843 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using JD.Core.Helpers;
|
|
|
|
namespace JD.Serialization
|
|
{
|
|
public partial class MusicTrackData : SpecialCustomTypeDescriptor
|
|
{
|
|
private float _volume = 0.000000f;
|
|
[UAFSerializable(4294967295)]
|
|
[DefaultValue(0.000000f)]
|
|
[Obsolete("Use only for Conversion")]
|
|
public virtual float Volume
|
|
{
|
|
get { return _volume; }
|
|
set
|
|
{
|
|
if (!_volume.AlmostEquals(value))
|
|
{
|
|
OnVolumeChanging(ref value);
|
|
_volume = value;
|
|
OnVolumeChanged();
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
}
|
|
partial void OnVolumeChanging(ref float value);
|
|
partial void OnVolumeChanged();
|
|
}
|
|
} |