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

1 results
Show all members

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.

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.