Trait bevy_ecs::schedule::IntoSystemDescriptor
source · pub trait IntoSystemDescriptor<Params> {
fn into_descriptor(self) -> SystemDescriptor;
fn with_run_criteria<Marker>(
self,
run_criteria: impl IntoRunCriteria<Marker>
) -> SystemDescriptor;
fn label(self, label: impl SystemLabel) -> SystemDescriptor;
fn before<Marker>(
self,
label: impl AsSystemLabel<Marker>
) -> SystemDescriptor;
fn after<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor;
fn ambiguous_with<Marker>(
self,
label: impl AsSystemLabel<Marker>
) -> SystemDescriptor;
fn ignore_all_ambiguities(self) -> SystemDescriptor;
fn at_start(self) -> SystemDescriptor;
fn before_commands(self) -> SystemDescriptor;
fn at_end(self) -> SystemDescriptor;
}
Required Methods§
fn into_descriptor(self) -> SystemDescriptor
sourcefn with_run_criteria<Marker>(
self,
run_criteria: impl IntoRunCriteria<Marker>
) -> SystemDescriptor
fn with_run_criteria<Marker>(
self,
run_criteria: impl IntoRunCriteria<Marker>
) -> SystemDescriptor
Assigns a run criteria to the system. Can be a new descriptor or a label of a run criteria defined elsewhere.
sourcefn label(self, label: impl SystemLabel) -> SystemDescriptor
fn label(self, label: impl SystemLabel) -> SystemDescriptor
Assigns a label to the system; there can be more than one, and it doesn’t have to be unique.
sourcefn before<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor
fn before<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor
Specifies that the system should run before systems with the given label.
sourcefn after<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor
fn after<Marker>(self, label: impl AsSystemLabel<Marker>) -> SystemDescriptor
Specifies that the system should run after systems with the given label.
sourcefn ambiguous_with<Marker>(
self,
label: impl AsSystemLabel<Marker>
) -> SystemDescriptor
fn ambiguous_with<Marker>(
self,
label: impl AsSystemLabel<Marker>
) -> SystemDescriptor
Marks this system as ambiguous with any system with the specified label. This means that execution order between these systems does not matter, which allows some warnings to be silenced.
sourcefn ignore_all_ambiguities(self) -> SystemDescriptor
fn ignore_all_ambiguities(self) -> SystemDescriptor
Specifies that this system should opt out of execution order ambiguity detection.
sourcefn at_start(self) -> SystemDescriptor
fn at_start(self) -> SystemDescriptor
Specifies that the system should run with other exclusive systems at the start of stage.
sourcefn before_commands(self) -> SystemDescriptor
fn before_commands(self) -> SystemDescriptor
Specifies that the system should run with other exclusive systems after the parallel systems and before command buffer application.
sourcefn at_end(self) -> SystemDescriptor
fn at_end(self) -> SystemDescriptor
Specifies that the system should run with other exclusive systems at the end of stage.