Skip to content

Commit

Permalink
Add Events to bevy_ecs prelude (bevyengine#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 authored and ItsDoot committed Feb 1, 2023
1 parent 5bd7c7f commit a53cf8f
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 a53cf8f

Please sign in to comment.