Skip to main content

types Folder

Files Index

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

Aggregator for health type definitions. More...

fileHealthChangeContext.ixx

Context data describing a health change applied to an entity. More...

fileHealthDepletedBehavior.ixx

Bitmask flags controlling the response when health reaches zero. More...

Description

helios::engine::mechanics::health::types

Type definitions for the health system.

Types

TypeDescription
HealthDepletedBehaviorBitmask flags controlling the response when health reaches zero
HealthChangeContextContext struct describing a health modification

HealthDepletedBehavior

Bitmask enum with values:

  • None – No action
  • Despawn – Queue the entity for despawning
  • DeadTag – Attach a DeadTagComponent

Supports bitwise operators and hasHealthDepletedFlag() for testing.

HealthChangeContext

Lightweight struct carrying:

  • interactionContext – An InteractionContext describing target, instigator, causer, and contact point
  • delta – Signed health delta (negative for damage, positive for healing)


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.