From 3a102e7dc20e442e8f8dd96bc92b040f0a6f0e6d Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Mon, 4 Jul 2022 13:04:17 +0000 Subject: [PATCH] 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. --- crates/bevy_ecs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/lib.rs b/crates/bevy_ecs/src/lib.rs index 30a373a9d5..27c2d44e85 100644 --- a/crates/bevy_ecs/src/lib.rs +++ b/crates/bevy_ecs/src/lib.rs @@ -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,