From d006c6f9efb026d1010e609830f8e1396f4bfdc5 Mon Sep 17 00:00:00 2001 From: Vijfhoek Date: Thu, 10 Jun 2021 16:43:20 +0200 Subject: [PATCH] Reorder fields in State --- src/state.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/state.rs b/src/state.rs index 66967a8..08997ca 100644 --- a/src/state.rs +++ b/src/state.rs @@ -28,14 +28,12 @@ pub const PRIMITIVE_STATE: wgpu::PrimitiveState = wgpu::PrimitiveState { pub struct State { pub window_size: PhysicalSize, + pub mouse_grabbed: bool, render_context: RenderContext, - pub mouse_grabbed: bool, - - pub hud: Hud, - pub world: World, - pub player: Player, + player: Player, + hud: Hud, } impl State { @@ -117,13 +115,12 @@ impl State { Self { window_size: window.inner_size(), + mouse_grabbed: false, render_context, - mouse_grabbed: false, - - hud, - player, world, + player, + hud, } }