DPB2Struct · Navigation

PathResult

The outcome of a route query, not a movement command. Check Success before reading Path; inspect ErrorCode when planning fails.

Namespace: DreamPoeBot.Loki.Bot.Pathfinding.RDWrapper.Types

public struct PathResult
Reference: DPB2 0.4.5.88No matching type in the reviewed DPB1 catalog.

Members and overloads

8 declared here

End

FieldLink ↗
public readonly Vector2i PathResult.End

The ending point of the pathfinding operation.

ErrorCode

FieldLink ↗
public PathfindError PathResult.ErrorCode

The error code indicating the result of the pathfinding operation. If the pathfinding was successful, this will be PathfindError.None. User must check this before using the DreamPoeBot.Loki.Bot.Pathfinding.RDWrapper.Types.PathResult.Path.

Path

FieldLink ↗
public List<Vector2i> PathResult.Path

The path found by the pathfinding algorithm. This is a list of Vector2i points representing the path from Start to End. If the pathfinding was unsuccessful, this may be null or empty.

Start

FieldLink ↗
public readonly Vector2i PathResult.Start

The starting point of the pathfinding operation. Is DreamPoeBot.Common.Vector2i.Zero by default.

PathResult

MethodLink ↗
public PathResult.PathResult()

Creates a new PathResult instance.

PathResult

MethodLink ↗
public PathResult.PathResult(List<Vector2i> path, PathfindError errorCode, Vector2i start, Vector2i end)

Creates a new PathResult instance using the supplied arguments.

Parameters

pathList<Vector2i>
Specifies path.
errorCodePathfindError
Specifies error code.
startVector2i
Specifies start.
endVector2i
Specifies end.

PathResult

MethodLink ↗
public PathResult.PathResult(List<Vector2i> path, int errorCode, Vector2i start, Vector2i end)

Creates a new PathResult instance using the supplied arguments.

Parameters

pathList<Vector2i>
Specifies path.
errorCodeint
Specifies error code.
startVector2i
Specifies start.
endVector2i
Specifies end.

Success

PropertyLink ↗
public bool PathResult.Success { get; }

Indicates whether the pathfinding was successful. Success is defined as having no error and a non-empty path.

DPB2 0.4.5.88 · Reference reviewed 2026-10-03. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.