Skip to main content

events Folder

Files Index

filehelios/engine/mechanics/health/events/_module.ixx

Module facade for health events. More...

fileHealthChangedEvent.ixx

Event emitted when an entity's health changes. More...

fileHealthDepletedEvent.ixx

Event emitted when an entity dies. More...

Description

helios::engine::mechanics::health::events

Health-related events.

Events

EventDescription
HealthDepletedEventEmitted when an entity's health reaches zero
HealthChangedEventEmitted 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.