components Folder
Files Index
| file | helios/engine/state/components/_module.ixx |
|
Sate components submodule. More... | |
| file | StateComponent.ixx |
|
Component storing current state for an entity. More... | |
Description
helios::engine::state::components
Components for storing state on entities.
Components
| Class | Description |
|---|---|
| StateComponent<StateType> | Stores current state and last transition |
Usage
Typically attached to the session entity:
auto& stateComponent = session.getOrAdd<StateComponent<GameState>>();
GameState current = stateComponent.state();
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.