DPB1Class · 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: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Class usage example: Reset local state on an area change →

Members and overloads

11 declared here

AreaHash

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

Retrieve the Unique uint related to the current Area. every instance of a area have a unique AreaHash and its always the same even if you exit and reenter that Area instance. If you generate a new Area instance, its AreaHash will be different, but always the same till that instance exist.

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

AreaLayoutHash

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

Retrieve the Unique uint related to the current Area Layout. every instance of a area, with the same map layout, have a unique AreaLayoutHash and its always the same even if you exit and reenter that Area instance. This value will be the same, for different Instance with the same map layout, like same Hideouts, or the Mirage instance.

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

MapMods

PropertyLink ↗
public static Dictionary<StatTypeGGG, int> LokiPoe.LocalData.MapMods { get; }

A Dictionary of StatTypeGGG, int that list all the Mods of the current area.

Value type: Dictionary<StatTypeGGG, int>
Explore StatTypeGGG → members & methods

Stats Type as rapresented in the game ggpk file.

MePtr

PropertyLink ↗
public static long LokiPoe.LocalData.MePtr { get; }

Reads me ptr on LokiPoe.LocalData as long. The exact type and accessors are shown below.

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

MyId

PropertyLink ↗
public static int LokiPoe.LocalData.MyId { get; }

Return the Id associated to the current ingame character.

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

MyReaction

PropertyLink ↗
public static byte LokiPoe.LocalData.MyReaction { get; }

A byte describing the current ingame character reaction, internally used to understand different objects reactions against the character.

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

SpecialMapMods

PropertyLink ↗
public static Dictionary<StatTypeGGG, int> LokiPoe.LocalData.SpecialMapMods { get; }

A Dictionary of StatTypeGGG, int that list all the special Mods of the current area.

Value type: Dictionary<StatTypeGGG, int>
Explore StatTypeGGG → members & methods

Stats Type as rapresented in the game ggpk file.

TownPortals

PropertyLink ↗
public static List<IngameData.PortalObject> LokiPoe.LocalData.TownPortals { get; }

A list of all visible TownPortals in the current Area. Remenber that you only see objects in a range of 210.

Value type: List<IngameData.PortalObject>
Explore IngameData.PortalObject → members & methods

Represents portal object in the current game state. Obtain the object from its owning API and refresh it after an area change.

Class usage examples

These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.

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.

DPB1 0.3.29.56 · 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.