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