예제 #1
0
파일: Dialog.cs 프로젝트: Xalphox/SampSharp
        /// <summary>
        ///     Raises the <see cref="Response" /> event.
        /// </summary>
        /// <param name="e">An <see cref="DialogResponseEventArgs" /> that contains the event data. </param>
        public void OnResponse(DialogResponseEventArgs e)
        {
            if (OpenDialogs.ContainsKey(e.Player.Id))
                OpenDialogs.Remove(e.Player.Id);

            _aSyncWaiter.Fire(e.Player, e);

            Response?.Invoke(this, e);
        }
예제 #2
0
 /// <summary>
 ///     Raises the <see cref="DialogResponse" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="DialogResponseEventArgs" /> that contains the event data. </param>
 protected virtual void OnDialogResponse(GtaPlayer player, DialogResponseEventArgs e)
 {
     if (DialogResponse != null)
         DialogResponse(player, e);
 }
예제 #3
0
 /// <summary>
 ///     Raises the <see cref="DialogResponse" /> event.
 /// </summary>
 /// <param name="player">The player triggering the event.</param>
 /// <param name="e">An <see cref="DialogResponseEventArgs" /> that contains the event data. </param>
 protected virtual void OnDialogResponse(BasePlayer player, DialogResponseEventArgs e)
 {
     DialogResponse?.Invoke(player, e);
 }