Skip to content

Commit 9381fed

Browse files
committed
Revert MoveBundle rename
1 parent cb07eff commit 9381fed

File tree

1 file changed

+6
-6
lines changed
  • crates/bevy_ecs/src/system/commands

1 file changed

+6
-6
lines changed

crates/bevy_ecs/src/system/commands/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ impl<'w, 's, 'a> EntityCommands<'w, 's, 'a> {
544544
self.entity,
545545
target
546546
);
547-
self.commands.add(MoveBundleTo::<T> {
547+
self.commands.add(MoveBundle::<T> {
548548
source: self.entity,
549549
target,
550550
_bundle: PhantomData,
@@ -586,7 +586,7 @@ impl<'w, 's, 'a> EntityCommands<'w, 's, 'a> {
586586
source,
587587
self.entity
588588
);
589-
self.commands.add(MoveBundleTo::<T> {
589+
self.commands.add(MoveBundle::<T> {
590590
source,
591591
target: self.entity,
592592
_bundle: PhantomData,
@@ -745,14 +745,14 @@ where
745745
}
746746
}
747747

748-
pub struct MoveBundleTo<T> {
748+
pub struct MoveBundle<T> {
749749
pub source: Entity,
750750
pub target: Entity,
751751
_bundle: PhantomData<T>,
752752
}
753753

754-
impl<T> MoveBundleTo<T> {
755-
/// Creates a new [`MoveBundleTo`] with given source and target IDs.
754+
impl<T> MoveBundle<T> {
755+
/// Creates a new [`MoveBundle`] with given source and target IDs.
756756
pub fn new(source: Entity, target: Entity) -> Self {
757757
Self {
758758
source,
@@ -762,7 +762,7 @@ impl<T> MoveBundleTo<T> {
762762
}
763763
}
764764

765-
impl<T> Command for MoveBundleTo<T>
765+
impl<T> Command for MoveBundle<T>
766766
where
767767
T: Bundle + 'static,
768768
{

0 commit comments

Comments
 (0)