DPB2Class · Game state and actions

LokiPoe.InstanceInfo.Expedition.PlacementGrid

The client's coarse, eight-direction Expedition connection grid. A connected cell alone does not guarantee valid placement.

Namespace: DreamPoeBot.Loki.Game

public class LokiPoe.InstanceInfo.Expedition.PlacementGrid
Reference: DPB2 0.4.5.103No matching type in the reviewed DPB1 catalog.

Members and overloads

7 declared here

GetConnections

MethodLink ↗
public LokiPoe.InstanceInfo.Expedition.Connections LokiPoe.InstanceInfo.Expedition.PlacementGrid.GetConnections(int x, int y)

Get the outgoing connection mask of a coarse cell. This does not apply forbidden areas, charge spacing or distance limits.

Return type: LokiPoe.InstanceInfo.Expedition.Connections
Explore LokiPoe.InstanceInfo.Expedition.Connections → members & methods

Outgoing connections from one Expedition grid cell; directions refer to grid coordinates, not screen coordinates.

Parameters

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

Specifies x.

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

Specifies y.

Returns: The Connections result.

GetPosition

MethodLink ↗
public Vector2i LokiPoe.InstanceInfo.Expedition.PlacementGrid.GetPosition(int x, int y)

Get the game position used to represent a coarse cell.

Return type: 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.

Parameters

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

Specifies x.

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

Specifies y.

Returns: The Vector2i result.

TryGetCell

MethodLink ↗
public bool LokiPoe.InstanceInfo.Expedition.PlacementGrid.TryGetCell(Vector2i position, out Vector2i cell)

Convert a game grid position to a coarse Expedition cell. False means outside the graph.

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

Parameters

position

Specifies position.

cell

Receives cell.

Returns: True when the request succeeds; read any out parameters only after checking the result.

Cells

PropertyLink ↗
public IReadOnlyList<byte> LokiPoe.InstanceInfo.Expedition.PlacementGrid.Cells { get; }

Row-major connection masks, indexed by y * Width + x. The returned collection cannot modify the captured grid.

Value type: IReadOnlyList<byte>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Height

PropertyLink ↗
public int LokiPoe.InstanceInfo.Expedition.PlacementGrid.Height { get; }

Number of coarse rows.

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

Width

PropertyLink ↗
public int LokiPoe.InstanceInfo.Expedition.PlacementGrid.Width { get; }

Number of coarse columns.

Value type: intNo 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.