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.

Members and overloads

1 declared here

Search includes inherited members below. 1 matching inherited member →

Show all members

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.

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.

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

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.