events Folder
Files Index
| file | helios/engine/mechanics/health/events/_module.ixx |
|
Module facade for health events. More... | |
| file | HealthChangedEvent.ixx |
|
Event emitted when an entity's health changes. More... | |
| file | HealthDepletedEvent.ixx |
|
Event emitted when an entity dies. More... | |
Description
helios::engine::mechanics::health::events
Health-related events.
Events
| Event | Description |
|---|---|
| HealthDepletedEvent | Emitted when an entity's health reaches zero |
| HealthChangedEvent | Emitted when an entity's health changes |
HealthDepletedEvent
Published by HealthManager when an entity dies.
Used by other systems (e.g., CombatScoringSystem, GameObjectLifecycleSystem) to react to entity deaths.
HealthChangedEvent
Published when an entity's health is modified (damage or healing). Contains:
- HealthChangeContext() – A HealthChangeContext describing target, source, contact point, and amount. Used for triggering health-based reactions (e.g., hit effects, UI updates) without needing to subscribe to the full health update process.
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.