Exemple #1
0
            public void SetNthMask(int index, object obj)
            {
                SkillData_FieldIndex enu = (SkillData_FieldIndex)index;

                switch (enu)
                {
                case SkillData_FieldIndex.Action:
                    this.Action = (Exception?)obj;
                    break;

                case SkillData_FieldIndex.Attribute:
                    this.Attribute = (Exception?)obj;
                    break;

                case SkillData_FieldIndex.Specialization:
                    this.Specialization = (Exception?)obj;
                    break;

                case SkillData_FieldIndex.UseValueFirst:
                    this.UseValueFirst = (Exception?)obj;
                    break;

                case SkillData_FieldIndex.UseValueSecond:
                    this.UseValueSecond = (Exception?)obj;
                    break;

                default:
                    throw new ArgumentException($"Index is out of range: {index}");
                }
            }
Exemple #2
0
            public object?GetNthMask(int index)
            {
                SkillData_FieldIndex enu = (SkillData_FieldIndex)index;

                switch (enu)
                {
                case SkillData_FieldIndex.Action:
                    return(Action);

                case SkillData_FieldIndex.Attribute:
                    return(Attribute);

                case SkillData_FieldIndex.Specialization:
                    return(Specialization);

                case SkillData_FieldIndex.UseValueFirst:
                    return(UseValueFirst);

                case SkillData_FieldIndex.UseValueSecond:
                    return(UseValueSecond);

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