mirror of
https://github.com/bevyengine/bevy
synced 2024-12-19 09:33:06 +00:00
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:
parent
9098973fb9
commit
40392a80d8
1 changed files with 3 additions and 3 deletions
|
@ -305,7 +305,7 @@ pub trait ChildBuild {
|
||||||
fn parent_entity(&self) -> Entity;
|
fn parent_entity(&self) -> Entity;
|
||||||
|
|
||||||
/// Adds a command to be executed, like [`Commands::queue`].
|
/// 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<'_> {
|
impl ChildBuild for ChildBuilder<'_> {
|
||||||
|
@ -330,7 +330,7 @@ impl ChildBuild for ChildBuilder<'_> {
|
||||||
self.add_children.parent
|
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.commands.queue(command);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
@ -573,7 +573,7 @@ impl ChildBuild for WorldChildBuilder<'_> {
|
||||||
self.parent
|
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);
|
command.apply(self.world);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue