Ejemplo n.º 1
0
            public void SetNthMask(int index, object obj)
            {
                SpellData_FieldIndex enu = (SpellData_FieldIndex)index;

                switch (enu)
                {
                case SpellData_FieldIndex.Type:
                    this.Type = (Exception?)obj;
                    break;

                case SpellData_FieldIndex.Cost:
                    this.Cost = (Exception?)obj;
                    break;

                case SpellData_FieldIndex.Level:
                    this.Level = (Exception?)obj;
                    break;

                case SpellData_FieldIndex.Flag:
                    this.Flag = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Ejemplo n.º 2
0
            public object?GetNthMask(int index)
            {
                SpellData_FieldIndex enu = (SpellData_FieldIndex)index;

                switch (enu)
                {
                case SpellData_FieldIndex.Type:
                    return(Type);

                case SpellData_FieldIndex.Cost:
                    return(Cost);

                case SpellData_FieldIndex.Level:
                    return(Level);

                case SpellData_FieldIndex.Flag:
                    return(Flag);

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