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.ObjectManager
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Class usage example: Find a targetable transition →

Members and overloads

38 declared here

Objects

PropertyLink ↗
public static List<NetworkObject> LokiPoe.ObjectManager.Objects { get; }

Retrieve a List of all NetworkObject visible by the game. this usually retrieve all Object with a max distance of 210, that is the limit after witch the server stop sending you data.

Value type: List<NetworkObject>
Explore NetworkObject → members & methods

Common view of an object in the current area, including its identity, position and interaction state.

Portals

PropertyLink ↗
public static IEnumerable<Portal> LokiPoe.ObjectManager.Portals { get; }

Retrieve all the Portal in range.

Value type: IEnumerable<Portal>
Explore Portal → members & methods

Represents portal in the current game state. Obtain the object from its owning API and refresh it after an area change.

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.

Value type: List<NetworkObject>
Explore NetworkObject → members & methods

Common view of an object in the current area, including its identity, position and interaction state.

UltimatumChallengeInteractables

PropertyLink ↗
public static IEnumerable<UltimatumChallengeInteractable> LokiPoe.ObjectManager.UltimatumChallengeInteractables { get; }

Retrieve All objects of type UltimatumChallengeInteractable.

Value type: IEnumerable<UltimatumChallengeInteractable>
Explore UltimatumChallengeInteractable → members & methods

Represents ultimatum challenge interactable in the current game state. Obtain the object from its owning API and refresh it after an area change.

Class usage examples

These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.

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

if (!LokiPoe.IsInGame || LokiPoe.Me == null)
    return;

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

if (transition == null)
    return;

Run on the bot thread. Requires System.Linq. This selects an object; it does not interact with it.

Guides using this class

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.