Trait bevy_ecs::schedule::IntoSystemConfig
source · pub trait IntoSystemConfig<Marker, Config = SystemConfig>: Sizedwhere
Config: IntoSystemConfig<(), Config>,{
// Provided methods
fn in_set(self, set: impl FreeSystemSet) -> Config { ... }
fn in_base_set(self, set: impl BaseSystemSet) -> Config { ... }
fn no_default_base_set(self) -> Config { ... }
fn before<M>(self, set: impl IntoSystemSet<M>) -> Config { ... }
fn after<M>(self, set: impl IntoSystemSet<M>) -> Config { ... }
fn run_if<M>(self, condition: impl Condition<M>) -> Config { ... }
fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> Config { ... }
fn ambiguous_with_all(self) -> Config { ... }
}
Expand description
Types that can be converted into a SystemConfig
.
This has been implemented for boxed System<In=(), Out=()>
trait objects and all functions that turn into such.
Provided Methods§
sourcefn in_set(self, set: impl FreeSystemSet) -> Config
fn in_set(self, set: impl FreeSystemSet) -> Config
Add to set
membership.
sourcefn in_base_set(self, set: impl BaseSystemSet) -> Config
fn in_base_set(self, set: impl BaseSystemSet) -> Config
Add to the provided “base” set
. For more information on base sets, see SystemSet::is_base
.
sourcefn no_default_base_set(self) -> Config
fn no_default_base_set(self) -> Config
Don’t add this system to the schedules’s default set.
sourcefn before<M>(self, set: impl IntoSystemSet<M>) -> Config
fn before<M>(self, set: impl IntoSystemSet<M>) -> Config
Run before all systems in set
.
sourcefn after<M>(self, set: impl IntoSystemSet<M>) -> Config
fn after<M>(self, set: impl IntoSystemSet<M>) -> Config
Run after all systems in set
.
sourcefn run_if<M>(self, condition: impl Condition<M>) -> Config
fn run_if<M>(self, condition: impl Condition<M>) -> Config
Run only if the Condition
is true
.
The Condition
will be evaluated at most once (per schedule run),
when the system prepares to run.
sourcefn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> Config
fn ambiguous_with<M>(self, set: impl IntoSystemSet<M>) -> Config
Suppress warnings and errors that would result from this system having ambiguities
(conflicting access but indeterminate order) with systems in set
.
sourcefn ambiguous_with_all(self) -> Config
fn ambiguous_with_all(self) -> Config
Suppress warnings and errors that would result from this system having ambiguities (conflicting access but indeterminate order) with any other system.