DPB1Class · Game state and actions

Entity

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

Namespace: DreamPoeBot.Loki

public class EntityView DPB2 version →

Members and overloads

15 results

Entity

MethodLink ↗
public Entity.Entity()

Creates a new Entity instance.

GetComponent

MethodLink ↗
public T Entity.GetComponent<T>() where T : Component, new()

Returns component.

Returns: The T result.

HasComponent

MethodLink ↗
public bool Entity.HasComponent<T>() where T : Component, new()

Checks for component.

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

OnPointerChanged

MethodLink ↗
protected override void Entity.OnPointerChanged()

Executes the on pointer changed operation.

ToString

MethodLink ↗
public override string Entity.ToString()

Returns a text representation of this value.

Returns: The string result.

BuildComponentIndices

PropertyLink ↗
public Dictionary<string, long> Entity.BuildComponentIndices { get; }

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

ComponentIndices

PropertyLink ↗
public Dictionary<string, long> Entity.ComponentIndices { get; }

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

Id

PropertyLink ↗
public int Entity.Id { get; }

Gets id for Entity.

IsValid

PropertyLink ↗
public override bool Entity.IsValid { get; }

Whether this entity is valid.

Metadata

PropertyLink ↗
public string Entity.Metadata { get; }

Gets metadata for Entity.

Name

PropertyLink ↗
public string Entity.Name { get; }

Gets name for Entity.

Position

PropertyLink ↗
public Vector2i Entity.Position { get; }

Gets position for Entity.

PositionedComp

PropertyLink ↗
public Positioned Entity.PositionedComp { get; }

Gets positioned comp for Entity.

Reaction

PropertyLink ↗
public byte Entity.Reaction { get; }

Gets reaction for Entity.

Type

PropertyLink ↗
public string Entity.Type { get; }

Gets type for Entity.

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.