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.LocalDataView DPB1 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

12 results

AreaHash

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

Gets area hash for LocalData.

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.

MyCharacterSize

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

Convenient method to retrieve current character size.

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.

MyRotation

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

A float describing the current ingame character rotation.

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.

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.