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