Skip to content
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

Merged
merged 10 commits into from
Mar 2, 2024

Conversation

targrub
Copy link
Contributor

@targrub targrub commented Mar 1, 2024

Objective

Fixes #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.

@alice-i-cecile alice-i-cecile changed the title Fix for https://github.com/bevyengine/bevy/issues/11628 Move commands module into bevy::ecs::world Mar 1, 2024
tools/ci/src/main.rs Outdated Show resolved Hide resolved
@alice-i-cecile alice-i-cecile added A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change labels Mar 1, 2024
@alice-i-cecile
Copy link
Member

Definitely in favor of this :) Let me know when it's ready to review.

@alice-i-cecile alice-i-cecile added the M-Needs-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide label Mar 1, 2024
@targrub targrub marked this pull request as ready for review March 2, 2024 18:43
@targrub
Copy link
Contributor Author

targrub commented Mar 2, 2024

Ready for review. @alice-i-cecile @JoJoJet

Copy link
Member

@alice-i-cecile alice-i-cecile left a 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.

@james7132 james7132 added this pull request to the merge queue Mar 2, 2024
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Mar 2, 2024
Comment on lines -118 to -125
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);
}
}
Copy link
Member

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

Merged via the queue into bevyengine:main with commit 13cbb9c Mar 2, 2024
26 checks passed
@targrub targrub deleted the commandqueue-11628 branch March 4, 2024 14:50
spectria-limina pushed a commit to spectria-limina/bevy that referenced this pull request Mar 9, 2024
# 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change M-Needs-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move commands module into bevy::ecs::world
4 participants