interface TokenFindMovementPathJob {
    cancel: () => void;
    promise: Promise<null | TokenMovementWaypoint[]>;
    result: undefined | null | TokenMovementWaypoint[];
}

Properties

Properties

cancel: () => void

If this function is called and the job hasn't completed yet, the job is cancelled.

promise: Promise<null | TokenMovementWaypoint[]>

The promise returning the (partial) path that as found or null if cancelled.

result: undefined | null | TokenMovementWaypoint[]

The result of the pathfinding job. Undefined while the search is in progress, null if the job was cancelled, and the (partial) path if the job completed.