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`.
This commit is contained in:
spvky 2024-12-10 19:53:54 -05:00 committed by GitHub
parent 9098973fb9
commit 40392a80d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -305,7 +305,7 @@ pub trait ChildBuild {
fn parent_entity(&self) -> Entity;
/// Adds a command to be executed, like [`Commands::queue`].
fn enqueue_command<C: Command>(&mut self, command: C) -> &mut Self;
fn queue_command<C: 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<C: Command>(&mut self, command: C) -> &mut Self {
fn queue_command<C: 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<C: Command>(&mut self, command: C) -> &mut Self {
fn queue_command<C: Command>(&mut self, command: C) -> &mut Self {
command.apply(self.world);
self
}