|
co_ecs 0.9.0
Cobalt ECS
|
Executes the schedule by running all stages. More...
#include <schedule.hpp>
Public Member Functions | |
| schedule_executor (registry ®istry, std::vector< std::unique_ptr< stage_executor > > stages, std::unique_ptr< stage_executor > init) | |
| Constructs a schedule executor. | |
| void | run_once () |
| Executes the schedule once. | |
Executes the schedule by running all stages.
|
inline |
Constructs a schedule executor.
This constructor initializes the schedule executor with the given registry, stages, and initial stage. It runs the initial stage and flushes the command buffer.
| registry | Reference to the registry object. |
| stages | Vector of unique pointers to stage executors. |
| init | Unique pointer to the initial stage executor. |
|
inline |
Executes the schedule once.
This function runs all stages in the schedule and then flushes the command buffer.