DamageOnCollisionSystem Class
Emits HealthChangedEvents when solid collisions involve damage dealers. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Processes collision events and applies damage to targets. More... | |
Private Static Attributes Index
| static const helios::util::log::Logger & | logger_ = ... |
Description
Emits HealthChangedEvents when solid collisions involve damage dealers.
Listens for SolidCollisionEvents and checks if the source entity has a DamageDealerComponent. If the target has a HealthComponent, emits an ApplyDamageCommand. Resolves the true attacker (instigator) via EmittedByComponent when applicable (e.g. projectiles).
Definition at line 62 of file DamageOnCollisionSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 70 of file DamageOnCollisionSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Processes collision events and applies damage to targets.
- Parameters
-
updateContext The current frame's update context.
Definition at line 78 of file DamageOnCollisionSystem.ixx.
Private Static Attributes
logger_
| static |
- Initialiser
Definition at line 65 of file DamageOnCollisionSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.