Checkpoint

This commit is contained in:
Nathan Sobo 2023-10-02 13:16:10 -06:00
parent 0b13c0a437
commit 79e1e1a747
5 changed files with 65 additions and 33 deletions

View file

@ -121,6 +121,10 @@ impl<'a, 'w> WindowContext<'a, 'w> {
self.window.mouse_position
}
pub fn scene(&mut self) -> &mut Scene {
&mut self.window.scene
}
pub(crate) fn draw(&mut self) -> Result<()> {
let unit_entity = self.unit_entity.clone();
self.update_entity(&unit_entity, |_, cx| {