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

Members and overloads

7 results

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.

xint
Specifies x.
yint
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.

xint
Specifies x.
yint
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.

positionVector2i
Specifies position.
cellVector2i
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.

Height

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

Number of coarse rows.

Origin

PropertyLink ↗
public Vector2i LokiPoe.InstanceInfo.Expedition.PlacementGrid.Origin { get; }

Origin in terrain-tile coordinates; each terrain tile spans 23 position units.

Width

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

Number of coarse columns.

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