GameCoreProcessActionAsync Method

Asynchronously adjusts the GameState and the PlayerState of the current player based on the given action. Doesn't check if the action is valid. Use an ActionVerifier to check if the action is valid before calling this function.

Definition

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

Parameters

action  GameAction
The action.
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

OperationCanceledExceptionThe task was canceled.

See Also