Add Events to bevy_ecs prelude (#5159)

# Objective

This is a common and useful type. I frequently use this when working with `Events` resource directly, typically when caching the data or manipulating the `World` directly.

This is also useful when manually configuring the cleanup strategy for events.
This commit is contained in:
Alice Cecile 2022-07-04 13:04:17 +00:00
parent 5d3fa5e77b
commit 3a102e7dc2

View file

@ -30,7 +30,7 @@ pub mod prelude {
change_detection::DetectChanges,
component::Component,
entity::Entity,
event::{EventReader, EventWriter},
event::{EventReader, EventWriter, Events},
query::{Added, AnyOf, ChangeTrackers, Changed, Or, QueryState, With, Without},
schedule::{
AmbiguitySetLabel, ExclusiveSystemDescriptorCoercion, ParallelSystemDescriptorCoercion,