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§
sourcefn name(&self) -> String
fn name(&self) -> String
The human-readable name for the stage, used for error messages when something goes wrong.
sourcefn add_system(&mut self, system: StaticSystem<(), ()>)
fn add_system(&mut self, system: StaticSystem<(), ()>)
Add a system to this stage.
sourcefn remove_all_systems(&mut self)
fn remove_all_systems(&mut self)
Remove all systems from this stage.