DPB2Class · World, character and items

NetworkObject

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

Namespace: DreamPoeBot.Loki.Game.Objects

public class NetworkObjectView DPB1 version →

Inherited APIs and contracts

Members declared by a base type are documented on that type. Follow these links to include them in your lookup.

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;

Read an object's identity and position

if (!LokiPoe.IsInGame)
    return;

var target = LokiPoe.ObjectManager.GetObjectsByType<NetworkObject>()
    .FirstOrDefault(obj => obj.IsTargetable);
if (target != null)
{
    var id = target.Id;
    var position = target.Position;
}

Object identifiers belong to the current area instance. Reacquire objects after travel.

Members and overloads

66 results

Type

PropertyLink ↗
public string NetworkObject.Type { get; }

Gets type for NetworkObject.

Ui

PropertyLink ↗
public Element NetworkObject.Ui { get; }

Gets ui for NetworkObject.

WorldDistance

PropertyLink ↗
public float NetworkObject.WorldDistance { get; }

Gets world distance for NetworkObject.

WorldDistanceSqr

PropertyLink ↗
public float NetworkObject.WorldDistanceSqr { get; }

Gets world distance sqr for NetworkObject.

WorldPosition

PropertyLink ↗
public Vector2 NetworkObject.WorldPosition { get; }

Gets world position for NetworkObject.

_entity

PropertyLink ↗
public EntityWrapper NetworkObject._entity { get; private set; }

Gets entity for NetworkObject.

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.