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

GetObjectsByMetadata

MethodLink โ†—
public static IEnumerable<NetworkObject> LokiPoe.ObjectManager.GetObjectsByMetadata(string metadata)

Retrieve a IEnumerable NetworkObject given a string rapresenting metadata

metadatastring
The string rapresenting metadata to search for

Returns: A IEnumerable NetworkObject found.

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.