Class AsyncMovementResult
Represents an asynchronous result of a movement attempt. Contains the movement result once ready, plus a task to handle the response.
Inherited Members
Namespace: ExplorerGame.Core
Assembly: explorer-game.dll
Syntax
public class AsyncMovementResult
Constructors
| Edit this page View SourceAsyncMovementResult(bool, MovementResult?, Task?)
Initializes a new instance of the AsyncMovementResult class.
Declaration
public AsyncMovementResult(bool ready = false, MovementResult? movementResult = null, Task? responseHandlerTask = null)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | ready |
|
| MovementResult? | movementResult | The movement result, if available. |
| Task | responseHandlerTask | An optional task that handles the response workflow. |
Properties
| Edit this page View SourceMovementResult
The result of the movement, if available.
Declaration
public MovementResult? MovementResult { get; }
Property Value
| Type | Description |
|---|---|
| MovementResult? |
Ready
Indicates whether the result is ready.
Declaration
[MemberNotNullWhen(true, "MovementResult")]
public bool Ready { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ResponseHandlerTask
Task associated with handling the response.
Declaration
public Task ResponseHandlerTask { get; }
Property Value
| Type | Description |
|---|---|
| Task |