示例#1
0
            public object?GetNthMask(int index)
            {
                SigilStoneData_FieldIndex enu = (SigilStoneData_FieldIndex)index;

                switch (enu)
                {
                case SigilStoneData_FieldIndex.Uses:
                    return(Uses);

                case SigilStoneData_FieldIndex.Value:
                    return(Value);

                case SigilStoneData_FieldIndex.Weight:
                    return(Weight);

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
示例#2
0
            public void SetNthMask(int index, object obj)
            {
                SigilStoneData_FieldIndex enu = (SigilStoneData_FieldIndex)index;

                switch (enu)
                {
                case SigilStoneData_FieldIndex.Uses:
                    this.Uses = (Exception?)obj;
                    break;

                case SigilStoneData_FieldIndex.Value:
                    this.Value = (Exception?)obj;
                    break;

                case SigilStoneData_FieldIndex.Weight:
                    this.Weight = (Exception?)obj;
                    break;

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