Type Alias bevy::ecs::schedule::SystemConfigs

pub type SystemConfigs = NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>;
Expand description

A collection of SystemConfig.

Aliased Type§

enum SystemConfigs {
    NodeConfig(NodeConfig<Box<dyn System<In = (), Out = ()>, Global>>),
    Configs {
        configs: Vec<NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>, Global>,
        collective_conditions: Vec<Box<dyn ReadOnlySystem<In = (), Out = bool>, Global>, Global>,
        chained: bool,
    },
}

Variants§

§

NodeConfig(NodeConfig<Box<dyn System<In = (), Out = ()>, Global>>)

Configuration for a single node.

§

Configs

Fields

§configs: Vec<NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>, Global>

Configuration for each element of the tuple.

§collective_conditions: Vec<Box<dyn ReadOnlySystem<In = (), Out = bool>, Global>, Global>

Run conditions applied to everything in the tuple.

§chained: bool

If true, adds before -> after ordering constraints between the successive elements.

Configuration for a tuple of nested Configs instances.

Implementations§

§

impl<T> NodeConfigs<T>

pub fn in_set_inner(&mut self, set: Interned<dyn SystemSet>)

Adds a new boxed system set to the systems.

pub fn run_if_dyn( &mut self, condition: Box<dyn ReadOnlySystem<In = (), Out = bool>, Global> )

Adds a new boxed run condition to the systems.

This is useful if you have a run condition whose concrete type is unknown. Prefer run_if for run conditions whose type is known at compile time.

Trait Implementations§

§

impl IntoSystemConfigs<()> for NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

§

fn into_configs(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Convert into a SystemConfigs.
§

fn in_set( self, set: impl SystemSet ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Add these systems to the provided set.
§

fn before<M>( self, set: impl IntoSystemSet<M> ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Run before all systems in set. Read more
§

fn after<M>( self, set: impl IntoSystemSet<M> ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Run after all systems in set. Read more
§

fn distributive_run_if<M>( self, condition: impl Condition<M, ()> + Clone ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Add a run condition to each contained system. Read more
§

fn ambiguous_with<M>( self, set: impl IntoSystemSet<M> ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with systems in set.
§

fn ambiguous_with_all( self ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Suppress warnings and errors that would result from these systems having ambiguities (conflicting access but indeterminate order) with any other system.
§

fn run_if<M>( self, condition: impl Condition<M, ()> ) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Run the systems only if the Condition is true. Read more
§

fn chain(self) -> NodeConfigs<Box<dyn System<In = (), Out = ()>, Global>>

Treat this collection as a sequence of systems. Read more