DPB1Class · Utilities and settings

EntityWrapper

Provides entity wrapper data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Models

public class EntityWrapper
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Useful members available through base types — open a member to read its exact contract:

Members and overloads

5 declared here

Search includes inherited members below. 12 matching inherited members →

EntityWrapper

MethodLink ↗
public EntityWrapper.EntityWrapper()

Creates a new EntityWrapper instance.

Equals

MethodLink ↗
public override bool EntityWrapper.Equals(object obj)

Checks whether this value equals the supplied value.

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

Parameters

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

Specifies obj.

Returns: A Boolean result. The member description explains the condition being checked.

GetHashCode

MethodLink ↗
public override int EntityWrapper.GetHashCode()

Returns a hash code for comparing or indexing this value.

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

Returns: The int result.

ToString

MethodLink ↗
public override string EntityWrapper.ToString()

Returns a text representation of this value.

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

Returns: The string result.

IsAlive

PropertyLink ↗
public bool EntityWrapper.IsAlive { get; }

Whether this entity wrapper is alive.

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

Inherited members and contracts

12 public members from documented base types and interfaces. Links open the original declaration; overrides are shown only once. Search using the member field above.

public Dictionary<string, long> Entity.BuildComponentIndices { get; } Declared by Entity

Gets the build component indices collection. Its element types are linked below.

public Dictionary<string, long> Entity.ComponentIndices { get; } Declared by Entity

Gets the component indices collection. Its element types are linked below.

public T Entity.GetComponent<T>() where T : Component, new() Declared by Entity

Returns component.

public bool Entity.HasComponent<T>() where T : Component, new() Declared by Entity

Checks for component.

public int Entity.Id { get; } Declared by Entity

Reads id on Entity as int. The exact type and accessors are shown below.

public override bool Entity.IsValid { get; } Declared by Entity

Whether this entity is valid.

public string Entity.Metadata { get; } Declared by Entity

Reads metadata on Entity as string. The exact type and accessors are shown below.

public string Entity.Name { get; } Declared by Entity

Reads name on Entity as string. The exact type and accessors are shown below.

public Vector2i Entity.Position { get; } Declared by Entity

Reads position on Entity as Vector2i. Open the value type below for its members and accepted values.

public Positioned Entity.PositionedComp { get; } Declared by Entity

Reads positioned comp on Entity as Positioned. Open the value type below for its members and accepted values.

public byte Entity.Reaction { get; } Declared by Entity

Reads reaction on Entity as byte. The exact type and accessors are shown below.

public string Entity.Type { get; } Declared by Entity

Reads type on Entity as string. The exact type and accessors are shown below.

DPB1 0.3.29.56 · 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.