|
co_ecs 0.9.0
Cobalt ECS
|
Class representing a stage in the schedule. More...
#include <stage.hpp>
Public Member Functions | |
| stage (schedule &schedule, std::string_view name={}) | |
| Constructs a new stage object. | |
| auto | end_stage () noexcept -> schedule & |
| Ends the current stage and returns the schedule. | |
| auto | add_system (main_thread_execution_policty_t policy, auto &&... args) -> self_type & |
| Adds a system to the main thread execution list. | |
| auto | add_system (auto &&... args) -> self_type & |
| Adds a system to the stage. | |
| auto | create_executor (registry ®istry, void *user_context=nullptr) -> std::unique_ptr< stage_executor > |
| Creates an executor for the stage. | |
Class representing a stage in the schedule.
A stage contains systems that are executed in sequence.
|
inline |
Constructs a new stage object.
| schedule | Reference to the schedule object. |
| name | Name of the stage. |
|
inline |
Adds a system to the stage.
| args | Arguments for the system to be added. |
|
inline |
Adds a system to the main thread execution list.
| policy | The main thread execution policy. |
| args | Arguments for the system to be added. |
|
inline |
Creates an executor for the stage.
This function creates a stage executor, which is responsible for running the systems in the stage.
| registry | Reference to the registry object. |
| user_context | Optional user context. |
|
inlinenoexcept |
Ends the current stage and returns the schedule.