co_ecs 0.9.0
Cobalt ECS
Loading...
Searching...
No Matches
co_ecs::schedule_executor Class Reference

Executes the schedule by running all stages. More...

#include <schedule.hpp>

Public Member Functions

 schedule_executor (registry &registry, 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.
 

Detailed Description

Executes the schedule by running all stages.

Constructor & Destructor Documentation

◆ schedule_executor()

co_ecs::schedule_executor::schedule_executor ( registry & registry,
std::vector< std::unique_ptr< stage_executor > > stages,
std::unique_ptr< stage_executor > init )
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.

Parameters
registryReference to the registry object.
stagesVector of unique pointers to stage executors.
initUnique pointer to the initial stage executor.

Member Function Documentation

◆ run_once()

void co_ecs::schedule_executor::run_once ( )
inline

Executes the schedule once.

This function runs all stages in the schedule and then flushes the command buffer.


The documentation for this class was generated from the following file: