HealthDepletedEvent.ixx File
Event emitted when an entity dies. More...
Included Headers
#include <optional>
#include <helios.engine.ecs.EntityHandle>
#include <helios.core.types>
#include <helios.engine.common.types.DamageContext>
#include <helios.math>
#include <helios.util.Guid>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | mechanics |
|
High-level gameplay systems and components for game logic. More... | |
| namespace | health |
|
Health management system for game entities. More... | |
| namespace | events |
|
Health-related events. More... | |
Classes Index
| class | HealthDepletedEvent |
|
Event emitted when an entity's health reaches zero. More... | |
Description
Event emitted when an entity dies.
File Listing
The file content with the documentation metadata removed is:
18using namespace helios::engine::common::types;
20export namespace helios::engine::mechanics::health::events {
28 class HealthDepletedEvent {
33 helios::engine::ecs::EntityHandle source_;
49 explicit HealthDepletedEvent(
50 const helios::engine::ecs::EntityHandle source,
51 std::optional<DamageContext> damageContext = std::nullopt
52 ) : damageContext_(damageContext), source_(source) {}
59 [[nodiscard]] std::optional<DamageContext> damageContext() const noexcept {
68 [[nodiscard]] helios::engine::ecs::EntityHandle source() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.