DPB1Class ยท 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 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;

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

InTownPortals

PropertyLink โ†—
public static IEnumerable<Portal> LokiPoe.ObjectManager.InTownPortals { get; }

Retrieve all the objects of type Portal, that are targetable and valid.

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.