GameStateRefillPuzzlesAsync Method

Refills the blank spots in the puzzle rows with puzzles from the decks. Before a puzzle is refilled, the OnPuzzleRefilledAsync(Int32, CancellationToken) method of all subscribed listeners is called and awaited.

Definition

Namespace: ProjectLCore.GameLogic
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public Task RefillPuzzlesAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken  CancellationToken
A cancellation token to observe while waiting for the task to complete.

Return Value

Task
A task that represents the asynchronous operation.

Exceptions

OperationCanceledExceptionThe task was canceled.

See Also