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