pub trait SystemStage: Sync + Send {
    fn id(&self) -> Ulid;
    fn name(&self) -> String;
    fn run(&mut self, world: &mut World) -> Result<(), Error>;
    fn initialize(&mut self, world: &mut World);
    fn add_system(&mut self, system: System<()>);
}
Expand description

Trait for system stages. A stage is a

Required Methods§

The unique identifier for the stage.

The human-readable name for the stage, used for error messages when something goes wrong.

Execute the systems on the given world.

Note: You must call initialize() once before calling run() one or more times.

Initialize the contained systems for the given world.

Must be called once before calling run().

Add a system to this stage.

Implementors§