Skip to main content

components Folder

Files Index

filehelios/engine/mechanics/match/components/_module.ixx

Aggregator for match component modules. More...

fileLivesBindingComponent.ixx

Component binding a UI element to a LivesComponent on another entity. More...

fileLivesComponent.ixx

Component tracking the remaining lives of an entity. More...

filePlayerComponent.ixx

Marker component identifying the player entity. More...

Description

helios::engine::mechanics::match::components

Components for match rule tracking.

Components

ComponentDescription
PlayerComponentMarker identifying the player entity
LivesComponentTracks remaining lives with revision-based change detection
LivesBindingComponentBinds a UI entity to a target's LivesComponent

LivesComponent

Maintains a life counter and a monotonically increasing LivesRevision. Each call to decrease() or increase() bumps the revision so observer systems can detect changes without polling.

LivesBindingComponent

Stores a target EntityHandle and a cached LivesRevision. The Lives2UiTextUpdateSystem compares the cached revision against the target's current revision to update the bound UI text on change.

PlayerComponent

Empty marker component. Systems query for it to apply player-specific logic (input handling, camera, UI).



Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.