Struct bones_lib::ecs::stage::SimpleSystemStage
pub struct SimpleSystemStage {
pub id: Ulid,
pub name: String,
pub systems: Vec<StaticSystem<(), ()>>,
}
Expand description
A collection of systems that will be run in order.
Fields§
§id: Ulid
The unique identifier for the stage.
name: String
The human-readable name for the stage, used for error messages when something goes wrong.
systems: Vec<StaticSystem<(), ()>>
The list of systems in the stage.
Each system will be run in the order that they are in in this list.
Implementations§
§impl SimpleSystemStage
impl SimpleSystemStage
pub fn new<L>(label: L) -> SimpleSystemStagewhere
L: StageLabel,
pub fn new<L>(label: L) -> SimpleSystemStagewhere
L: StageLabel,
Create a new, empty stage, for the given label.
Trait Implementations§
§impl SystemStage for SimpleSystemStage
impl SystemStage for SimpleSystemStage
§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.
Auto Trait Implementations§
impl Freeze for SimpleSystemStage
impl !RefUnwindSafe for SimpleSystemStage
impl Send for SimpleSystemStage
impl Sync for SimpleSystemStage
impl Unpin for SimpleSystemStage
impl !UnwindSafe for SimpleSystemStage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more