Skip to content

Commit 6da2305

Browse files
authored
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.
1 parent 7d3068e commit 6da2305

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/bevy_ecs/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ pub mod prelude {
6161
IntoSystemSetConfigs, Schedule, Schedules, SystemSet,
6262
},
6363
system::{
64-
Commands, Deferred, In, IntoSystem, Local, NonSend, NonSendMut, ParallelCommands,
65-
ParamSet, Query, ReadOnlySystem, Res, ResMut, Resource, System, SystemParamBuilder,
66-
SystemParamFunction,
64+
Commands, Deferred, EntityCommand, EntityCommands, In, IntoSystem, Local, NonSend,
65+
NonSendMut, ParallelCommands, ParamSet, Query, ReadOnlySystem, Res, ResMut, Resource,
66+
System, SystemParamBuilder, SystemParamFunction,
6767
},
6868
world::{
69-
EntityMut, EntityRef, EntityWorldMut, FromWorld, OnAdd, OnInsert, OnRemove, OnReplace,
70-
World,
69+
Command, EntityMut, EntityRef, EntityWorldMut, FromWorld, OnAdd, OnInsert, OnRemove,
70+
OnReplace, World,
7171
},
7272
};
7373
}

0 commit comments

Comments
 (0)