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

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.

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.