From 40392a80d849ffddacfb541e8da398d8f801cb4c Mon Sep 17 00:00:00 2001 From: spvky <30451500+spvky@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:53:54 -0500 Subject: [PATCH] rename enqueue_command to queue_command for consistency (#16753) # Objective Fixes https://github.com/bevyengine/bevy/issues/16752 ## Solution Renamed the 3 remaining instances of `enqueue_command` to `queue_command` ## Testing - Built locally ## Migration Guide All instances of the `enqueue_command` method have been renamed to `queue_command`. --- crates/bevy_hierarchy/src/child_builder.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_hierarchy/src/child_builder.rs b/crates/bevy_hierarchy/src/child_builder.rs index a3ed780ad0960..769da2b83bb8b 100644 --- a/crates/bevy_hierarchy/src/child_builder.rs +++ b/crates/bevy_hierarchy/src/child_builder.rs @@ -305,7 +305,7 @@ pub trait ChildBuild { fn parent_entity(&self) -> Entity; /// Adds a command to be executed, like [`Commands::queue`]. - fn enqueue_command(&mut self, command: C) -> &mut Self; + fn queue_command(&mut self, command: C) -> &mut Self; } impl ChildBuild for ChildBuilder<'_> { @@ -330,7 +330,7 @@ impl ChildBuild for ChildBuilder<'_> { self.add_children.parent } - fn enqueue_command(&mut self, command: C) -> &mut Self { + fn queue_command(&mut self, command: C) -> &mut Self { self.commands.queue(command); self } @@ -573,7 +573,7 @@ impl ChildBuild for WorldChildBuilder<'_> { self.parent } - fn enqueue_command(&mut self, command: C) -> &mut Self { + fn queue_command(&mut self, command: C) -> &mut Self { command.apply(self.world); self }