LambdaSystem Class Template
ECS system that executes a stored lambda on each update. More...
Declaration
Public Member Typedefs Index
template <typename THandle> | |
| using | EngineRoleTag = SystemRole |
Private Member Typedefs Index
template <typename THandle> | |
| using | FunctionType = std::function< void(UpdateContext &)> |
Public Constructors Index
template <typename THandle> | |
| LambdaSystem (FunctionType lambda) | |
|
Creates the system from an update callback. More... | |
Public Member Functions Index
template <typename THandle> | |
| void | update (UpdateContext &updateContext) noexcept |
|
Executes the stored callback for the current update step. More... | |
Private Member Attributes Index
template <typename THandle> | |
| FunctionType | lambda_ |
Description
ECS system that executes a stored lambda on each update.
- Template Parameters
-
THandle Handle type used by the surrounding system graph.
Definition at line 28 of file LambdaSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 35 of file LambdaSystem.ixx.
Private Member Typedefs
FunctionType
|
Definition at line 30 of file LambdaSystem.ixx.
Public Constructors
LambdaSystem()
| inline explicit |
Creates the system from an update callback.
- Parameters
-
lambda Callback executed in update.
Definition at line 41 of file LambdaSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Executes the stored callback for the current update step.
- Parameters
-
updateContext Runtime context of the engine update.
Definition at line 48 of file LambdaSystem.ixx.
Reference helios::engine::core::registerComponents.
Private Member Attributes
lambda_
|
Definition at line 31 of file LambdaSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.