From 6da2305e49d97b439d490d6ff2417235e0250fe5 Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Thu, 15 Aug 2024 16:33:32 +0300 Subject: [PATCH] Add `Command` and co. to prelude (#14751) # Objective Make it easier to write and work with custom `Command`s and `EntityCommand`s. See https://discord.com/channels/691052431525675048/692572690833473578/1273030340235100214 for (brief) context. ## Solution Re-export `Command`, `EntityCommand`, and `EntityCommands` in the `bevy_ecs::prelude`, where `Commands` is already re-exported. --- crates/bevy_ecs/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/bevy_ecs/src/lib.rs b/crates/bevy_ecs/src/lib.rs index 931fc1064d..a08a62053e 100644 --- a/crates/bevy_ecs/src/lib.rs +++ b/crates/bevy_ecs/src/lib.rs @@ -61,13 +61,13 @@ pub mod prelude { IntoSystemSetConfigs, Schedule, Schedules, SystemSet, }, system::{ - Commands, Deferred, In, IntoSystem, Local, NonSend, NonSendMut, ParallelCommands, - ParamSet, Query, ReadOnlySystem, Res, ResMut, Resource, System, SystemParamBuilder, - SystemParamFunction, + Commands, Deferred, EntityCommand, EntityCommands, In, IntoSystem, Local, NonSend, + NonSendMut, ParallelCommands, ParamSet, Query, ReadOnlySystem, Res, ResMut, Resource, + System, SystemParamBuilder, SystemParamFunction, }, world::{ - EntityMut, EntityRef, EntityWorldMut, FromWorld, OnAdd, OnInsert, OnRemove, OnReplace, - World, + Command, EntityMut, EntityRef, EntityWorldMut, FromWorld, OnAdd, OnInsert, OnRemove, + OnReplace, World, }, }; }