CombatScoringSystem Class
System that processes death events and awards scores. 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 death events and issues score commands. More... | |
Private Static Attributes Index
| static const helios::util::log::Logger & | logger_ = ... |
Description
System that processes death events and awards scores.
Listens for HealthDepletedEvent and checks if the killed entity has a ScoreValueComponent. If so, issues an UpdateScoreCommand to credit the attacker's score pool.
Definition at line 58 of file CombatScoringSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 65 of file CombatScoringSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Processes death events and issues score commands.
- Parameters
-
updateContext The current frame's update context.
Definition at line 73 of file CombatScoringSystem.ixx.
References helios::engine::mechanics::scoring::types::ScoreTypeId::id and helios::engine::mechanics::scoring::types::ScoreTypeId::value.
Private Static Attributes
logger_
| static |
- Initialiser
Definition at line 60 of file CombatScoringSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.