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.

Use this API

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

Members and overloads

12 declared here

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.

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

Named values for stat type ggg. Select a value when an API accepts or returns StatTypeGGG.

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.

MyCharacterSize

PropertyLink ↗
public static float LokiPoe.LocalData.MyCharacterSize { get; }

Convenient method to retrieve current character size.

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

MyRotation

PropertyLink ↗
public static float LokiPoe.LocalData.MyRotation { get; }

A float describing the current ingame character rotation.

Value type: floatNo 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

Named values for stat type ggg. Select a value when an API accepts or returns StatTypeGGG.

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.

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.