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.

Members and overloads

1 declared here

Search includes inherited members below. 12 matching inherited members →

Show all members

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.

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.

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

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.