GameCoreInitializeGameAsync Method

Gives every player a O1 and I2 tetromino from the shared reserve. Then asynchronously fills the black and white puzzle rows with puzzles from the decks. Throws an exception if this method is called more than once.

Definition

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

Parameters

cancellationToken  CancellationToken  (Optional)
Cancellation token to observe while waiting for the task to complete.

Return Value

Task
A task that represents the asynchronous operation.

Exceptions

InvalidOperationExceptionGame already initialized.
OperationCanceledExceptionThe task was canceled.

See Also