Interface IDialogService
Provides the functionality for showing dialogs to players.
public interface IDialogService
Methods
ShowAsync<TResponse>(Player, IDialog<TResponse>)
Shows the specified dialog to the player.
Task<TResponse> ShowAsync<TResponse>(Player player, IDialog<TResponse> dialog) where TResponse : struct
Parameters
playerPlayerThe player to show the dialog to.
dialogIDialog<TResponse>The dialog to show to the player.
Returns
- Task<TResponse>
The dialog response.
Type Parameters
TResponseThe type of the response.
Show<TResponse>(Player, IDialog<TResponse>, Action<TResponse>)
Shows the specified dialog to the player.
void Show<TResponse>(Player player, IDialog<TResponse> dialog, Action<TResponse> responseHandler) where TResponse : struct
Parameters
playerPlayerThe player to show the dialog to.
dialogIDialog<TResponse>The dialog to show to the player.
responseHandlerAction<TResponse>A handler for the dialog response.
Type Parameters
TResponseThe type of the response returned by the dialog.