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