Beispiel #1
0
 /// <summary>
 ///     Raises the <see cref="PlayerSelectPlayerObject" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="SelectPlayerObjectEventArgs" /> that contains the event data.</param>
 protected virtual void OnPlayerSelectPlayerObject(GtaPlayer player, SelectPlayerObjectEventArgs e)
 {
     if (PlayerSelectPlayerObject != null)
         PlayerSelectPlayerObject(player, e);
 }
Beispiel #2
0
 /// <summary>
 ///     Raises the <see cref="PlayerSelectPlayerObject" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="SelectPlayerObjectEventArgs" /> that contains the event data.</param>
 protected virtual void OnPlayerSelectPlayerObject(BasePlayer player, SelectPlayerObjectEventArgs e)
 {
     PlayerSelectPlayerObject?.Invoke(player, e);
 }