Skip to main content

Module resource

Module resource 

Source
Expand description

Resource pool management and time-based effects.

Provides a ResourcePool to track stateful values like Current HP or MP, along with Damage over Time (DoT) and Heal over Time (HoT) effects.

Structs§

ResourceEvent
Emitted when a threshold trigger condition is met.
ResourcePool
A stateful resource pool (e.g., Current HP) bounded by a maximum stat.
ThresholdTrigger
A trigger that emits an event when a condition is met.
TimeEffect
A time-based effect applied to a resource.

Enums§

TriggerCondition
Condition for a threshold trigger.