File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
crates/bevy_ecs/src/schedule Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ use thiserror::Error;
2323#[ cfg( feature = "trace" ) ]
2424use tracing:: info_span;
2525
26- use crate :: { change_detection:: CheckChangeTicks , system:: System } ;
26+ use crate :: { change_detection:: CheckChangeTicks , component :: Component , system:: System } ;
2727use crate :: { resource:: Resource , schedule:: * , system:: ScheduleSystem , world:: World } ;
2828
2929pub use stepping:: Stepping ;
@@ -126,6 +126,24 @@ impl Schedules {
126126 }
127127 }
128128
129+ /// Ignore system order ambiguities caused by conflicts on [`Component`]s of type `T`.
130+ #[ deprecated(
131+ since = "0.18.0" ,
132+ note = "Use `World::allow_ambiguous_component` instead"
133+ ) ]
134+ pub fn allow_ambiguous_component < T : Component > ( & mut self , world : & mut World ) {
135+ world. allow_ambiguous_component :: < T > ( ) ;
136+ }
137+
138+ /// Ignore system order ambiguities caused by conflicts on [`Resource`]s of type `T`.
139+ #[ deprecated(
140+ since = "0.18.0" ,
141+ note = "Use `World::allow_ambiguous_resource` instead"
142+ ) ]
143+ pub fn allow_ambiguous_resource < T : Resource > ( & mut self , world : & mut World ) {
144+ world. allow_ambiguous_resource :: < T > ( ) ;
145+ }
146+
129147 /// Adds one or more systems to the [`Schedule`] matching the provided [`ScheduleLabel`].
130148 pub fn add_systems < M > (
131149 & mut self ,
You can’t perform that action at this time.
0 commit comments