Implement get_many.

I believe the repeated code can be generated with procedural macros, but
I don't need that right now. I'll do it if I ever end up needing this.
Right now I need to start making the game itself more than anything.
This commit is contained in:
reo 2025-10-16 16:12:18 +03:00
parent b86bbdd237
commit 1a48e58a1c
2 changed files with 408 additions and 31 deletions

View file

@ -92,8 +92,7 @@ impl System for FPSDebugCameraSystem {
}
fn frame_update(&mut self, res: &mut EngineResources, scene: &mut Scene) {
let pctx = res.get::<PlatformContext>().unwrap();
let input = res.get::<InputState>().unwrap();
let (pctx, input) = res.get_many::<(PlatformContext, InputState)>().unwrap();
if self.mouse_enabled {
self.yaw += self.mouse_delta.0 as f32 * self.sensitivity;