Trait bones_framework::lib::prelude::SystemStage

source ·
pub trait SystemStage: Sync + Send {
    // Required methods
    fn id(&self) -> Ulid;
    fn name(&self) -> String;
    fn run(&mut self, world: &World);
    fn add_system(&mut self, system: StaticSystem<(), ()>);
    fn remove_all_systems(&mut self);
}
Expand description

Trait for system stages. A stage is a

Required Methods§

source

fn id(&self) -> Ulid

The unique identifier for the stage.

source

fn name(&self) -> String

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

source

fn run(&mut self, world: &World)

Execute the systems on the given world.

source

fn add_system(&mut self, system: StaticSystem<(), ()>)

Add a system to this stage.

source

fn remove_all_systems(&mut self)

Remove all systems from this stage.

Implementors§