Skip to main content

StateTransitionListener.ixx File

Interface for state transition observers. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine
namespacestate

Classes Index

classStateTransitionListener<StateType>

Interface for observing state transitions. More...

Description

Interface for state transition observers.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7
8export module helios.engine.state.StateTransitionListener;
9
10import helios.engine.runtime.world.UpdateContext;
11
12import helios.engine.state.types;
13
14using namespace helios::engine::state::types;
15
16export namespace helios::engine::state {
17
31 template<typename StateType>
33
34
35 public:
36 virtual ~StateTransitionListener() = default;
37
44 virtual void onStateExit(
46 const StateType from
47 ) noexcept = 0;
48
55 virtual void onStateEnter(
57 const StateType to
58 ) noexcept = 0;
59
66 virtual void onStateTransition(
69 ) noexcept = 0;
70
71
72
73
74 };
75
76}
77

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.