예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }