|
co_ecs 0.9.0
Cobalt ECS
|
Manages the execution of systems in different stages. More...
#include <schedule.hpp>
Public Member Functions | |
| template<typename... Args> | |
| auto | add_init_system (Args &&... args) -> self_type & |
| Adds an initialization system to the initial stage. | |
| auto | begin_stage (std::string_view name={}) -> stage & |
| Begins a new stage in the schedule. | |
| auto | create_executor (registry ®istry, void *user_context=nullptr) -> std::unique_ptr< schedule_executor > |
| Creates an executor for the schedule. | |
Manages the execution of systems in different stages.
|
inline |
Adds an initialization system to the initial stage.
This function adds a system to the initialization stage, which is executed before other stages.
| args | Arguments for the system to be added. |
|
inline |
Begins a new stage in the schedule.
This function creates a new stage with the given name and adds it to the schedule.
| name | Name of the stage to be created. |
|
inline |
Creates an executor for the schedule.
This function creates a schedule executor, which is responsible for running the stages of the schedule.
| registry | Reference to the registry object. |
| user_context | Optional user context. |