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