systems Folder
Files Index
| file | helios/engine/mechanics/damage/systems/_module.ixx |
|
Module facade for damage systems. More... | |
| file | DamageOnCollisionSystem.ixx |
|
System that applies damage when solid collisions occur. More... | |
Description
helios::engine::mechanics::damage::systems
Systems for damage processing.
Systems
| System | Phase | Description |
|---|---|---|
| DamageOnCollisionSystem | Update | Applies damage when solid collisions occur |
DamageOnCollisionSystem
Processes SolidCollisionEvent and applies damage:
1. Reads collision events from the pass buffer 2. Checks if source entity has DamageDealerComponent 3. Checks if target entity has HealthComponent 4. Looks up damage value by target's collision layer 5. Calls takeDamage() on target's health component 6. Updates LastDamageComponent with attack context
The attack source is resolved through EmittedByComponent if present (e.g., projectile → player).
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.