Make commands more publicly accessible
This commit is contained in:
parent
abbbfb359d
commit
b9296f8e57
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ pub struct Commands {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Commands {
|
impl Commands {
|
||||||
pub(crate) fn new(now: Duration) -> Self {
|
pub fn new(now: Duration) -> Self {
|
||||||
Self {
|
Self {
|
||||||
commands: Vec::new(),
|
commands: Vec::new(),
|
||||||
now,
|
now,
|
||||||
|
@ -72,7 +72,7 @@ impl Commands {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn apply_deferred(self, world: &mut World) -> Result<()> {
|
pub fn apply_deferred(self, world: &mut World) -> Result<()> {
|
||||||
for command in self.commands {
|
for command in self.commands {
|
||||||
match command {
|
match command {
|
||||||
CommandTypes::InsertEntity(entity_object) => {
|
CommandTypes::InsertEntity(entity_object) => {
|
||||||
|
|
Loading…
Reference in a new issue