-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move commands module into bevy::ecs::world #12234
Conversation
Definitely in favor of this :) Let me know when it's ready to review. |
Ready for review. @alice-i-cecile @JoJoJet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is an improvement.
impl SystemBuffer for CommandQueue { | ||
#[inline] | ||
fn apply(&mut self, _system_meta: &SystemMeta, world: &mut World) { | ||
#[cfg(feature = "trace")] | ||
let _span_guard = _system_meta.commands_span.enter(); | ||
self.apply(world); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, but I think it makes sense to keep this impl here, since it's used only for the Commands
definition just above
# Objective Fixes bevyengine#11628 ## Migration Guide `Command` and `CommandQueue` have migrated from `bevy_ecs::system` to `bevy_ecs::world`, so `use bevy_ecs::world::{Command, CommandQueue};` when necessary.
Objective
Fixes #11628
Migration Guide
Command
andCommandQueue
have migrated frombevy_ecs::system
tobevy_ecs::world
, souse bevy_ecs::world::{Command, CommandQueue};
when necessary.