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

AreaTransition

MethodLink ↗
public static AreaTransition LokiPoe.ObjectManager.AreaTransition(string name)

Retrieve a specific AreaTransition by its Name.

Return type: AreaTransition
Explore AreaTransition → members & methods

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

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The name of the AreaTransition to retrieve

Returns: A AreaTransition object if found, or null.

ClearAwake

MethodLink ↗
public static void LokiPoe.ObjectManager.ClearAwake()

This will Clear the actual cache, you dont need to call this function, the cache is rebuild every 30ms.

Return type: voidNo return value.

CorruptedAreaTransition

MethodLink ↗
public static AreaTransition LokiPoe.ObjectManager.CorruptedAreaTransition()

Retrieve a specific corrupted AreaTransition by its Name.

Return type: AreaTransition
Explore AreaTransition → members & methods

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

Returns: A AreaTransition object if found, or null.

GetExpeditionPlacementIndicator

MethodLink ↗
public static ExpeditionPlacementIndicator LokiPoe.ObjectManager.GetExpeditionPlacementIndicator()

Retrieve the ExpeditionPlacementIndicator as NetworkObject.

Return type: ExpeditionPlacementIndicator
Explore ExpeditionPlacementIndicator → members & methods

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

Returns: The NetworkObject retrieved, or null.

GetMetadatas

MethodLink ↗
public static IEnumerable<string> LokiPoe.ObjectManager.GetMetadatas(params LokiPoe.ObjectManager.PoeObjectEnum[] enums)

Calls GetMetadatas on LokiPoe.ObjectManager with enums and returns IEnumerable<string>. Open the return contract below before using the result.

Return type: IEnumerable<string>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

enums
Parameter type: PoeObjectEnum[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies enums.

Returns: The IEnumerable<string> result.

GetObjectByAddress

MethodLink ↗
public static NetworkObject LokiPoe.ObjectManager.GetObjectByAddress(long addr)

Retrieve a specific NetworkObject by its address.

Return type: NetworkObject
Explore NetworkObject → members & methods

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

Parameters

addr
Parameter type: longNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The address of the NetworkObject to retrieve

Returns: The NetworkObject retrieved, or null.

GetObjectById

MethodLink ↗
public static NetworkObject LokiPoe.ObjectManager.GetObjectById(long id)

Retrieve a specific NetworkObject by its id. Please note, this is the faster way to retrieve NetworkObjects, as it directly pull them from the game dictionary Id, address.

Return type: NetworkObject
Explore NetworkObject → members & methods

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

Parameters

id
Parameter type: longNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The id of the NetworkObject to retrieve

Returns: The NetworkObject retrieved, or null.

GetObjectById

MethodLink ↗
public static T LokiPoe.ObjectManager.GetObjectById<T>(long id) where T : class

Retrieve a specific Type Object by its id. Please note, this is the faster way to retrieve NetworkObjects, as it directly pull them from the game dictionary Id, address.

Return type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

id
Parameter type: longNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The id of the object to retrieve

Returns: The T object retrieved, or null.

GetObjectByMetadata

MethodLink ↗
public static NetworkObject LokiPoe.ObjectManager.GetObjectByMetadata(string metadata)

Retrieve a specific NetworkObject by its metadata.

Return type: NetworkObject
Explore NetworkObject → members & methods

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

Parameters

metadata
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The metadata of the NetworkObject to retrieve

Returns: The NetworkObject retrieved, or null.

GetObjectByName

MethodLink ↗
public static NetworkObject LokiPoe.ObjectManager.GetObjectByName(string name)

Retrieve a specific NetworkObject by its name.

Return type: NetworkObject
Explore NetworkObject → members & methods

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

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The name of the NetworkObject to retrieve

Returns: The NetworkObject retrieved, or null.

GetObjectByName

MethodLink ↗
public static T LokiPoe.ObjectManager.GetObjectByName<T>(string name) where T : class

Retrieve a specific Type object by its name.

Return type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The name of the object to retrieve

Returns: The T object retrieved, or null.

GetObjectByType

MethodLink ↗
public static T LokiPoe.ObjectManager.GetObjectByType<T>() where T : class

Retrieve the first objects of a specific T Type found.

Return type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: The first objects of a specific T Type found, or null.

GetObjects

MethodLink ↗
public static IEnumerable<NetworkObject> LokiPoe.ObjectManager.GetObjects(params LokiPoe.ObjectManager.PoeObjectEnum[] enums)

Retrieve a IEnumerable NetworkObject given a array of PoeObjectEnum.

Return type: IEnumerable<NetworkObject>
Explore NetworkObject → members & methods

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

Parameters

enums
Parameter type: PoeObjectEnum[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.

A array of PoeObjectEnum

Returns: A IEnumerable NetworkObject found.

GetObjects

MethodLink ↗
public static IEnumerable<NetworkObject> LokiPoe.ObjectManager.GetObjects(IEnumerable<LokiPoe.ObjectManager.PoeObjectEnum> enums)

Retrieve a IEnumerable NetworkObject given a IEnumerable PoeObjectEnum .

Return type: IEnumerable<NetworkObject>
Explore NetworkObject → members & methods

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

Parameters

enums
Parameter type: IEnumerable<PoeObjectEnum>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

a IEnumerable PoeObjectEnum

Returns: A IEnumerable NetworkObject found.

GetObjectsByMetadata

MethodLink ↗
public static IEnumerable<NetworkObject> LokiPoe.ObjectManager.GetObjectsByMetadata(string metadata)

Retrieve a IEnumerable NetworkObject given a string rapresenting metadata

Return type: IEnumerable<NetworkObject>
Explore NetworkObject → members & methods

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

Parameters

metadata
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The string rapresenting metadata to search for

Returns: A IEnumerable NetworkObject found.

GetObjectsByMetadatas

MethodLink ↗
public static IEnumerable<NetworkObject> LokiPoe.ObjectManager.GetObjectsByMetadatas(IEnumerable<string> metadatas)

Retrieve a IEnumerable NetworkObject given a IEnumerable of string rapresenting metadata

Return type: IEnumerable<NetworkObject>
Explore NetworkObject → members & methods

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

Parameters

metadatas
Parameter type: IEnumerable<string>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

The IEnumerable of string rapresenting metadata to search for

Returns: A IEnumerable NetworkObject found.

GetObjectsByMetadatas

MethodLink ↗
public static IEnumerable<NetworkObject> LokiPoe.ObjectManager.GetObjectsByMetadatas(params string[] metadatas)

Retrieve a IEnumerable NetworkObject given a array of string rapresenting metadata

Return type: IEnumerable<NetworkObject>
Explore NetworkObject → members & methods

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

Parameters

metadatas
Parameter type: string[]No current DPB page is linked for this built-in, external, generic or compatibility-only type.

The array string rapresenting metadata to search for

Returns: A IEnumerable NetworkObject found.

GetObjectsByName

MethodLink ↗
public static IEnumerable<NetworkObject> LokiPoe.ObjectManager.GetObjectsByName(string name)

Retrieve a IEnumerable NetworkObject given a string rapresenting it name.

Return type: IEnumerable<NetworkObject>
Explore NetworkObject → members & methods

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

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The name of the Objects to search for.

Returns: A IEnumerable NetworkObject found.

GetObjectsByName

MethodLink ↗
public static IEnumerable<T> LokiPoe.ObjectManager.GetObjectsByName<T>(string name) where T : class

Retrieve a IEnumerable Type T given a string rapresenting it name.

Return type: IEnumerable<T>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The name of the Objects to search for.

Returns: A IEnumerable of Type T found.

GetObjectsByPosition

MethodLink ↗
public static IEnumerable<T> LokiPoe.ObjectManager.GetObjectsByPosition<T>(Vector2i position) where T : NetworkObject

Retrieve a IEnumerable Type T given a Vector2i rapresenting it position.

Return type: IEnumerable<T>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

position

A Vector2i rapresenting the exact position to look for.

Returns: >A IEnumerable of Type T found.

GetObjectsByType

MethodLink ↗
public static IEnumerable<T> LokiPoe.ObjectManager.GetObjectsByType<T>() where T : class

Retrieve All objects of Type T

Return type: IEnumerable<T>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: A IEnumerable of Type T found.

TownPortal

MethodLink ↗
public static Portal LokiPoe.ObjectManager.TownPortal(string ownerName)

Retrieve a TownPortal given the Owner name.

Return type: 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.

Parameters

ownerName
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The owner name.

Returns: A Portal found, or null.

AllObjectsOverride

PropertyLink ↗
public static bool LokiPoe.ObjectManager.AllObjectsOverride { get; set; }

If set to true, it will ignore the cache and recollect all objects at every single call of the ObjectManager. Use carefully, this will eat alot of cpu. Default value is false.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

AnyDoors

PropertyLink ↗
public static IEnumerable<TriggerableBlockage> LokiPoe.ObjectManager.AnyDoors { get; }

Retrieve All objects of type TriggerableBlockage, this specific method do retrieve Doors, GoldenDoors, SilverDoor, LockedDoor, HiddenDoor.

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

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

InTownPortals

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

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

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.

MetadataDictionary

PropertyLink ↗
public static Dictionary<string, List<NetworkObject>> LokiPoe.ObjectManager.MetadataDictionary { get; }

Gets the metadata dictionary collection. Its element types are linked below.

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

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

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.