DPB2Class · World, character and items

Life

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

Namespace: DreamPoeBot.Loki.Components

public class Life
Reference: DPB2 0.4.5.103Compare the DPB1 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

24 declared here

Search includes inherited members below. 1 matching inherited member →

Life

MethodLink ↗
public Life.Life()

Creates a new Life instance.

GetSpirit

MethodLink ↗
public SpiritData Life.GetSpirit(int weaponSet)

Reads the Spirit budget for a one-based weapon set (1..3), without opening G. Throws when the resource is missing, invalid or changes owner during the read. Primarily intended for the local player; not all actors have Spirit resources.

Return type: SpiritData
Explore SpiritData → members & methods

A read-only snapshot of the player's Spirit budget for one weapon set.

Parameters

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

Specifies weapon set.

Returns: The SpiritData result.

ToString

MethodLink ↗
public override string Life.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.

CorpseUsable

PropertyLink ↗
public bool Life.CorpseUsable { get; }

Reads corpse usable on Life as bool. The exact type and accessors are shown below.

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

Public DPB2 0.4.5.103 corrects corpse-usability observations. Reacquire the object after a wait or area change; this flag alone does not prove range, reachability or success of a skill request.

EnergyShield

PropertyLink ↗
public int Life.EnergyShield { get; }

Reads energy shield on Life as int. The exact type and accessors are shown below.

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

EnergyShieldMax

PropertyLink ↗
public int Life.EnergyShieldMax { get; }

Reads energy shield max on Life as int. The exact type and accessors are shown below.

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

EnergyShieldPercent

PropertyLink ↗
public float Life.EnergyShieldPercent { get; }

Reads energy shield percent on Life as float. The exact type and accessors are shown below.

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

EnergyShieldPercentTotal

PropertyLink ↗
public float Life.EnergyShieldPercentTotal { get; }

Reads energy shield percent total on Life as float. The exact type and accessors are shown below.

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

EnergyShieldRegen

PropertyLink ↗
public float Life.EnergyShieldRegen { get; }

Reads energy shield regen on Life as float. The exact type and accessors are shown below.

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

EnergyShieldReserved

PropertyLink ↗
public int Life.EnergyShieldReserved { get; }

Reads energy shield reserved on Life as int. The exact type and accessors are shown below.

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

EnergyShieldReservedPercent

PropertyLink ↗
public float Life.EnergyShieldReservedPercent { get; }

Reads energy shield reserved percent on Life as float. The exact type and accessors are shown below.

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

Health

PropertyLink ↗
public int Life.Health { get; }

Reads health on Life as int. The exact type and accessors are shown below.

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

HealthPercent

PropertyLink ↗
public float Life.HealthPercent { get; }

Reads health percent on Life as float. The exact type and accessors are shown below.

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

HealthRegen

PropertyLink ↗
public float Life.HealthRegen { get; }

Reads health regen on Life as float. The exact type and accessors are shown below.

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

HealthReserved

PropertyLink ↗
public int Life.HealthReserved { get; }

Reads health reserved on Life as int. The exact type and accessors are shown below.

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

HealthReservedPercent

PropertyLink ↗
public int Life.HealthReservedPercent { get; }

Reads health reserved percent on Life as int. The exact type and accessors are shown below.

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

Mana

PropertyLink ↗
public int Life.Mana { get; }

Reads mana on Life as int. The exact type and accessors are shown below.

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

ManaPercent

PropertyLink ↗
public float Life.ManaPercent { get; }

Reads mana percent on Life as float. The exact type and accessors are shown below.

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

ManaPercentTotal

PropertyLink ↗
public float Life.ManaPercentTotal { get; }

Reads mana percent total on Life as float. The exact type and accessors are shown below.

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

ManaRegen

PropertyLink ↗
public float Life.ManaRegen { get; }

Reads mana regen on Life as float. The exact type and accessors are shown below.

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

ManaReserved

PropertyLink ↗
public int Life.ManaReserved { get; }

Reads mana reserved on Life as int. The exact type and accessors are shown below.

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

ManaReservedPercent

PropertyLink ↗
public float Life.ManaReservedPercent { get; }

Reads mana reserved percent on Life as float. The exact type and accessors are shown below.

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

MaxHealth

PropertyLink ↗
public int Life.MaxHealth { get; }

Reads max health on Life as int. The exact type and accessors are shown below.

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

MaxMana

PropertyLink ↗
public int Life.MaxMana { get; }

Reads max mana on Life as int. The exact type and accessors are shown below.

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

Inherited members and contracts

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

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

Whether this component is valid.

DPB2 0.4.5.103 · 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.