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