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