/// <summary> /// Raises the <see cref="PlayerSelectedMenuRow" /> event. /// </summary> /// <param name="player">The player triggering the event.</param> /// <param name="e">An <see cref="MenuRowEventArgs" /> that contains the event data. </param> protected virtual void OnPlayerSelectedMenuRow(GtaPlayer player, MenuRowEventArgs e) { if (PlayerSelectedMenuRow != null) PlayerSelectedMenuRow(player, e); }
/// <summary> /// Raises the <see cref="PlayerSelectedMenuRow" /> event. /// </summary> /// <param name="player">The player triggering the event.</param> /// <param name="e">An <see cref="MenuRowEventArgs" /> that contains the event data. </param> protected virtual void OnPlayerSelectedMenuRow(BasePlayer player, MenuRowEventArgs e) { PlayerSelectedMenuRow?.Invoke(player, e); }