public Entity.Entity()
Creates a new Entity instance.
Provides entity data and the operations listed below. Related types link to the values this API consumes or returns.
Namespace: DreamPoeBot.Loki
public class Entitypublic Entity.Entity()
Creates a new Entity instance.
public T Entity.GetComponent<T>() where T : Component, new()
Returns component.
TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: The T result.
public bool Entity.HasComponent<T>() where T : Component, new()
Checks for component.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: A Boolean result. The member description explains the condition being checked.
protected override void Entity.OnPointerChanged()
Calls OnPointerChanged on Entity without arguments. This overload has no return value.
voidNo return value.public override string Entity.ToString()
Returns a text representation of this value.
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: The string result.
public Dictionary<string, long> Entity.BuildComponentIndices { get; }
Gets the build component indices collection. Its element types are linked below.
Dictionary<string, long>No current DPB page is linked for this built-in, external, generic or compatibility-only type.public Dictionary<string, long> Entity.ComponentIndices { get; }
Gets the component indices collection. Its element types are linked below.
Dictionary<string, long>No current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Entity.Id { get; }
Reads id on Entity as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public override bool Entity.IsValid { get; }
Whether this entity is valid.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public string Entity.Metadata { get; }
Reads metadata on Entity as string. The exact type and accessors are shown below.
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public string Entity.Name { get; }
Reads name on Entity as string. The exact type and accessors are shown below.
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public Vector2i Entity.Position { get; }
Reads position on Entity as Vector2i. Open the value type below for its members and accepted values.
Vector2iA two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.
public Positioned Entity.PositionedComp { get; }
Reads positioned comp on Entity as Positioned. Open the value type below for its members and accepted values.
PositionedProvides positioned data and the operations listed below. Related types link to the values this API consumes or returns.
public byte Entity.Reaction { get; }
Reads reaction on Entity as byte. The exact type and accessors are shown below.
byteNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public string Entity.Type { get; }
Reads type on Entity as string. The exact type and accessors are shown below.
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.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.