DPB2Class · Game state and actions

LokiPoe.LocalData

Contains informations about the actual Area instance. for exemple this contain the informations about the Labyrinth, or the actual area Mods.

Namespace: DreamPoeBot.Loki.Game

public static class LokiPoe.LocalData
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

AreaHash

PropertyLink ↗
public static uint LokiPoe.LocalData.AreaHash { get; }

Reads area hash on LokiPoe.LocalData as uint. The exact type and accessors are shown below.

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

Examples for this member

Only examples explicitly associated with this declaration are shown.

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Reset local state on an area change

if (!LokiPoe.IsInGame || LokiPoe.Me == null)
{
    previousAreaHash = null;
    previousAreaId = null;
    areaTargets.Clear();
    return;
}

var area = LokiPoe.CurrentWorldArea;
var currentHash = LokiPoe.LocalData.AreaHash;
if (area == null || currentHash == 0)
    return;

if (currentHash != previousAreaHash || area.Id != previousAreaId)
{
    previousAreaHash = currentHash;
    previousAreaId = area.Id;
    areaTargets.Clear();
}

Run in Tick. Own these fields on your plugin: uint? previousAreaHash; string previousAreaId; readonly List<int> areaTargets = new List<int>(); reset them in Start. Hash identifies ordinary instance changes; zone ID also distinguishes local areas sharing a hash. Name is only a label. Some special transfers share both identifiers; travel needs its own bounded arrival check.

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.