CallableSystem Class Template
ECS system that executes a stored lambda on each update. More...
Declaration
Public Member Typedefs Index
template <typename THandle, typename TCommandBuffer, typename TFunc> | |
| using | CommandBuffer_type = TCommandBuffer |
template <typename THandle, typename TCommandBuffer, typename TFunc> | |
| using | EngineRoleTag = CallableSystemRole |
Public Constructors Index
template <typename THandle, typename TCommandBuffer, typename TFunc> | |
| CallableSystem (TFunc lambda) | |
|
Creates the system from an update callback. More... | |
Public Member Functions Index
template <typename THandle, typename TCommandBuffer, typename TFunc> | |
| void | update (UpdateContext &updateContext, TCommandBuffer &commandBuffer) noexcept |
|
Executes the stored callback for the current update step. More... | |
Private Member Attributes Index
template <typename THandle, typename TCommandBuffer, typename TFunc> | |
| TFunc | lambda_ |
Description
ECS system that executes a stored lambda on each update.
- Template Parameters
-
THandle Handle type used by the surrounding system graph.
TFunc lambda function type
Definition at line 69 of file CallableSystem.ixx.
Public Member Typedefs
CommandBuffer_type
|
Definition at line 75 of file CallableSystem.ixx.
EngineRoleTag
|
Definition at line 77 of file CallableSystem.ixx.
Public Constructors
CallableSystem()
| inline explicit |
Creates the system from an update callback.
- Parameters
-
lambda Callback executed in update.
Definition at line 83 of file CallableSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Executes the stored callback for the current update step.
- Parameters
-
updateContext Runtime context of the engine update.
commandBuffer
Definition at line 91 of file CallableSystem.ixx.
Reference helios::engine::core::registerComponents.
Private Member Attributes
lambda_
|
Definition at line 71 of file CallableSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.