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.
Namespace: ProjectLCore.GameLogicAssembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
public Task ProcessActionAsync(
GameAction action,
CancellationToken cancellationToken = default
)
- action GameAction
- The action.
- cancellationToken CancellationToken (Optional)
- Cancellation token to observe while waiting for the task to complete.
TaskA task that represents the asynchronous operation.