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.LocalDataView DPB2 version →

Examples

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;

Detect an area change

var currentHash = LokiPoe.LocalData.AreaHash;
if (currentHash != previousAreaHash)
{
    previousAreaHash = currentHash;
    areaTargets.Clear();
}

previousAreaHash and areaTargets are state owned by your plugin. Clear area-specific state when the instance changes.

Members and overloads

11 results

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.

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.

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.

MePtr

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

Gets me ptr for LocalData.

MyId

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

Return the Id associated to the current ingame character.

MyPosition

PropertyLink ↗
public static Vector2i LokiPoe.LocalData.MyPosition { get; }

Convenient method to retrieve current character position. you can also use LokiPoe.Me.Position etc etc.

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.

MyWorldPosition

PropertyLink ↗
public static Vector2 LokiPoe.LocalData.MyWorldPosition { get; }

Convenient method to retrieve current character World position. you can also use LokiPoe.Me.PositionedComp.WorldPos etc etc.

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.

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.

WorldArea

PropertyLink ↗
public static DatWorldAreaWrapper LokiPoe.LocalData.WorldArea { get; }

A DatWorldAreaWrapper describing the current Area.

Related types

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