DPB2Class ยท Game state and actions

LokiPoe.ObjectManager

Retrieve informations about all the game Objects, Npcs, Monsters, WorldItems, AreaTransitions, but also interactable objects like Blight Towers, Ultimatum monolith, harmfull effects, etc etc. Litterally all the dynamic objects placed in game by the server. Use this wisely, as even if the ObjectManager have a cache that is refreshed every 30ms, calling it that fast, is really cpu intensive, you should code your components in the most efficent way possible.

Namespace: DreamPoeBot.Loki.Game

public static class LokiPoe.ObjectManagerView 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;

Find a targetable transition

var transition = LokiPoe.ObjectManager
    .GetObjectsByType<AreaTransition>()
    .FirstOrDefault(item => item.IsTargetable);

if (transition == null)
    return;

Requires System.Linq. This selects an object; it does not interact with it.

Members and overloads

1 results
Show all members

SleepingObjects

PropertyLink โ†—
public static List<NetworkObject> LokiPoe.ObjectManager.SleepingObjects { get; }

Retrieve a List of all NetworkObject Sleeping visible by the game (Sleeping Objects are trees, bush and all the visual object placen in game, Expedition marker too). this usually retrieve all Object with a max distance of 210, that is the limit after witch the server stop sending you data.

Related types

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.