Пример #1
0
            public override object?GetNthMask(int index)
            {
                SoundDataExtended_FieldIndex enu = (SoundDataExtended_FieldIndex)index;

                switch (enu)
                {
                case SoundDataExtended_FieldIndex.StaticAttenuation:
                    return(StaticAttenuation);

                case SoundDataExtended_FieldIndex.StopTime:
                    return(StopTime);

                case SoundDataExtended_FieldIndex.StartTime:
                    return(StartTime);

                default:
                    return(base.GetNthMask(index));
                }
            }
Пример #2
0
            public override void SetNthMask(int index, object obj)
            {
                SoundDataExtended_FieldIndex enu = (SoundDataExtended_FieldIndex)index;

                switch (enu)
                {
                case SoundDataExtended_FieldIndex.StaticAttenuation:
                    this.StaticAttenuation = (Exception?)obj;
                    break;

                case SoundDataExtended_FieldIndex.StopTime:
                    this.StopTime = (Exception?)obj;
                    break;

                case SoundDataExtended_FieldIndex.StartTime:
                    this.StartTime = (Exception?)obj;
                    break;

                default:
                    base.SetNthMask(index, obj);
                    break;
                }
            }
Пример #3
0
            public override void SetNthException(int index, Exception ex)
            {
                SoundDataExtended_FieldIndex enu = (SoundDataExtended_FieldIndex)index;

                switch (enu)
                {
                case SoundDataExtended_FieldIndex.StaticAttenuation:
                    this.StaticAttenuation = ex;
                    break;

                case SoundDataExtended_FieldIndex.StopTime:
                    this.StopTime = ex;
                    break;

                case SoundDataExtended_FieldIndex.StartTime:
                    this.StartTime = ex;
                    break;

                default:
                    base.SetNthException(index, ex);
                    break;
                }
            }