コード例 #1
0
ファイル: BaseMode.events.cs プロジェクト: WLSF/SampSharp
 /// <summary>
 ///     Raises the <see cref="PlayerSelectGlobalObject" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="SelectGlobalObjectEventArgs" /> that contains the event data.</param>
 protected virtual void OnPlayerSelectGlobalObject(GtaPlayer player, SelectGlobalObjectEventArgs e)
 {
     if (PlayerSelectGlobalObject != null)
         PlayerSelectGlobalObject(player, e);
 }
コード例 #2
0
ファイル: BaseMode.events.cs プロジェクト: Xalphox/SampSharp
 /// <summary>
 ///     Raises the <see cref="PlayerSelectGlobalObject" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="SelectGlobalObjectEventArgs" /> that contains the event data.</param>
 protected virtual void OnPlayerSelectGlobalObject(BasePlayer player, SelectGlobalObjectEventArgs e)
 {
     PlayerSelectGlobalObject?.Invoke(player, e);
 }