HealthChangedEvent Class
Event carrying details of a health modification. More...
Declaration
Public Constructors Index
| HealthChangedEvent (const helios::engine::mechanics::health::types::HealthChangeContext &HealthChangeContext) | |
|
Constructs a HealthChangedEvent. More... | |
Public Member Functions Index
| helios::engine::mechanics::health::types::HealthChangeContext | HealthChangeContext () const noexcept |
|
Returns the health update context. More... | |
Private Member Attributes Index
| helios::engine::mechanics::health::types::HealthChangeContext | healthChangeContext_ |
|
Context describing the health change. More... | |
Description
Event carrying details of a health modification.
Emitted by the health system whenever an entity's health value changes, allowing observers to react (e.g. UI updates, VFX).
Definition at line 26 of file HealthChangedEvent.ixx.
Public Constructors
HealthChangedEvent()
| inline explicit |
Constructs a HealthChangedEvent.
- Parameters
-
HealthChangeContext Context describing the change.
Definition at line 40 of file HealthChangedEvent.ixx.
Reference HealthChangeContext.
Public Member Functions
HealthChangeContext()
| inline nodiscard noexcept |
Returns the health update context.
- Returns
The HealthChangeContext for this event.
Definition at line 49 of file HealthChangedEvent.ixx.
Referenced by HealthChangedEvent.
Private Member Attributes
healthChangeContext_
|
Context describing the health change.
Definition at line 31 of file HealthChangedEvent.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.