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.103No matching type in the reviewed DPB1 catalog.

Members and overloads

8 declared here

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.

Value type: PathfindError
Explore PathfindError → members & methods

Explains why a route query failed or could not produce a usable path. Check PathResult.Success as well as this value.

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.

Value type: List<Vector2i>
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

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

path
Parameter type: List<Vector2i>

Specifies path.

errorCode
Parameter type: PathfindError

Specifies error code.

start

Specifies start.

end

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

path
Parameter type: List<Vector2i>

Specifies path.

errorCode
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies error code.

start

Specifies start.

end

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.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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