Skip to content

Commit

Permalink
Add Events to bevy_ecs prelude (#5159)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
alice-i-cecile committed Jul 4, 2022
1 parent 5d3fa5e commit 3a102e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3a102e7

Please sign in to comment.