diff options
Diffstat (limited to 'azalea/src/pathfinder/simulation.rs')
| -rw-r--r-- | azalea/src/pathfinder/simulation.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs index 72e5e048..82d93370 100644 --- a/azalea/src/pathfinder/simulation.rs +++ b/azalea/src/pathfinder/simulation.rs @@ -152,9 +152,17 @@ impl Simulation { } pub fn tick(&mut self) { + self.run_update_schedule(); + self.run_gametick_schedule(); + } + + pub fn run_update_schedule(&mut self) { self.app.update(); + } + pub fn run_gametick_schedule(&mut self) { self.app.world_mut().run_schedule(GameTick); } + pub fn component<T: Component + Clone>(&self) -> T { self.app.world().get::<T>(self.entity).unwrap().clone() } |
