Add Ref to the prelude (#7392)

# Objective

Add the change-detection wrapper type `Ref<T>` (originally added in #7097) to `bevy_ecs::prelude`.
This commit is contained in:
JoJoJet 2023-01-28 09:28:47 +00:00
parent 5d912a2f35
commit 299bd37752

View File

@ -29,7 +29,7 @@ pub mod prelude {
#[doc(hidden)] #[doc(hidden)]
pub use crate::{ pub use crate::{
bundle::Bundle, bundle::Bundle,
change_detection::{DetectChanges, DetectChangesMut}, change_detection::{DetectChanges, DetectChangesMut, Mut, Ref},
component::Component, component::Component,
entity::Entity, entity::Entity,
event::{EventReader, EventWriter, Events}, event::{EventReader, EventWriter, Events},
@ -44,7 +44,7 @@ pub mod prelude {
Commands, In, IntoPipeSystem, IntoSystem, Local, NonSend, NonSendMut, ParallelCommands, Commands, In, IntoPipeSystem, IntoSystem, Local, NonSend, NonSendMut, ParallelCommands,
ParamSet, Query, RemovedComponents, Res, ResMut, Resource, System, SystemParamFunction, ParamSet, Query, RemovedComponents, Res, ResMut, Resource, System, SystemParamFunction,
}, },
world::{FromWorld, Mut, World}, world::{FromWorld, World},
}; };
} }