Esempio n. 1
0
            public object?GetNthMask(int index)
            {
                ShoutWord_FieldIndex enu = (ShoutWord_FieldIndex)index;

                switch (enu)
                {
                case ShoutWord_FieldIndex.Word:
                    return(Word);

                case ShoutWord_FieldIndex.Spell:
                    return(Spell);

                case ShoutWord_FieldIndex.RecoveryTime:
                    return(RecoveryTime);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Esempio n. 2
0
            public void SetNthMask(int index, object obj)
            {
                ShoutWord_FieldIndex enu = (ShoutWord_FieldIndex)index;

                switch (enu)
                {
                case ShoutWord_FieldIndex.Word:
                    this.Word = (Exception?)obj;
                    break;

                case ShoutWord_FieldIndex.Spell:
                    this.Spell = (Exception?)obj;
                    break;

                case ShoutWord_FieldIndex.RecoveryTime:
                    this.RecoveryTime = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }