StateComponent.ixx File
Component storing current state for an entity. More...
Included Headers
#include <helios.engine.state.types.StateTransitionContext>
#include <helios.engine.state.types.StateTransitionId>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | state |
| namespace | components |
Classes Index
| class | StateComponent<StateType> |
|
Stores the current state and last transition for an entity. More... | |
Description
Component storing current state for an entity.
File Listing
The file content with the documentation metadata removed is:
13export namespace helios::engine::state::components {
27 class StateComponent {
29 using StateTransitionIdType = helios::engine::state::types::StateTransitionIdType<StateType>;
71 void setStateFromTransitionContext(const helios::engine::state::types::StateTransitionContext<StateType> stateTransitionContext) noexcept {
72 from_ = stateTransitionContext.from();
73 state_ = stateTransitionContext.to();
74 transitionId_ = stateTransitionContext.transitionId();
82 StateTransitionIdType transitionId() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.