Skip to main content

commands Folder

Files Index

filehelios/engine/mechanics/scoring/commands/_module.ixx

Module facade for scoring commands. More...

fileUpdateScoreCommand.ixx

Command for updating scores in a score pool. More...

Description

helios::engine::mechanics::scoring::commands

Score update commands for the command buffer.

This namespace contains command classes used to request score updates through the command system.

Commands

CommandDescription
UpdateScoreCommandCommand that carries score update information to the ScorePoolManager

Usage

Commands are typically issued by scoring systems (e.g., CombatScoringSystem) when a scoring event occurs:

 auto scoreContext = types::ScoreValueContext{
  .scoreTypeId = ScoreTypeId::id<KillReward>(),
  .scorePoolId = playerScorePoolId,
  .value = 100
 };
 
 updateContext.queueCommand<UpdateScoreCommand>(std::move(scoreValueContext));


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.