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}"); } }
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}"); } }