LambdaStateListener.ixx File
Lambda-based listener for state transitions. More...
Included Headers
#include <functional>
#include <cstdint>
#include <utility>
#include <helios.engine.state.types>
#include <helios.engine.ecs.GameObject>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.engine.state.StateTransitionListener>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | state |
|
Generic, template-based state management system. More... | |
| namespace | listeners |
|
State transition listeners. More... | |
Classes Index
| class | LambdaStateListener<StateType> |
|
Lambda-based implementation of StateTransitionListener. More... | |
Description
Lambda-based listener for state transitions.
File Listing
The file content with the documentation metadata removed is:
20using namespace helios::engine::state::types;
21using namespace helios::engine::ecs;
23export namespace helios::engine::state::listeners {
38 class LambdaStateListener : public StateTransitionListener<StateType> {
43 using OnEnterCallback = std::function<void(helios::engine::runtime::world::UpdateContext&, const StateType)>;
48 using OnExitCallback = std::function<void(helios::engine::runtime::world::UpdateContext&, const StateType)>;
53 using OnTransitionCallback = std::function<void(helios::engine::runtime::world::UpdateContext&, const StateTransitionContext<StateType>)>;
80 explicit LambdaStateListener(
93 explicit LambdaStateListener(
102 explicit LambdaStateListener(
111 void onStateExit(
112 helios::engine::runtime::world::UpdateContext& updateContext,
123 void onStateEnter(
124 helios::engine::runtime::world::UpdateContext& updateContext,
135 void onStateTransition(
136 helios::engine::runtime::world::UpdateContext& updateContext,
137 const StateTransitionContext<StateType> transitionCtx
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.