public object?GetNthMask(int index) { WorldspaceMapOffset_FieldIndex enu = (WorldspaceMapOffset_FieldIndex)index; switch (enu) { case WorldspaceMapOffset_FieldIndex.Scale: return(Scale); case WorldspaceMapOffset_FieldIndex.CellOffset: return(CellOffset); default: throw new ArgumentException($"Index is out of range: {index}"); } }
public void SetNthMask(int index, object obj) { WorldspaceMapOffset_FieldIndex enu = (WorldspaceMapOffset_FieldIndex)index; switch (enu) { case WorldspaceMapOffset_FieldIndex.Scale: this.Scale = (Exception?)obj; break; case WorldspaceMapOffset_FieldIndex.CellOffset: this.CellOffset = (Exception?)obj; break; default: throw new ArgumentException($"Index is out of range: {index}"); } }