Skip to content

Commit 8e773b2

Browse files
committed
reintroduce but deprecate some functions
1 parent 3982de5 commit 8e773b2

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

crates/bevy_ecs/src/schedule/schedule.rs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use thiserror::Error;
2323
#[cfg(feature = "trace")]
2424
use tracing::info_span;
2525

26-
use crate::{change_detection::CheckChangeTicks, system::System};
26+
use crate::{change_detection::CheckChangeTicks, component::Component, system::System};
2727
use crate::{resource::Resource, schedule::*, system::ScheduleSystem, world::World};
2828

2929
pub 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,

0 commit comments

Comments
 (0)