Reorder fields in State
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sijmen 2021-06-10 16:43:20 +02:00
parent 6c50c6ac70
commit d006c6f9ef
Signed by: vijfhoek
GPG key ID: 82D05C89B28B0DAE

View file

@ -28,14 +28,12 @@ pub const PRIMITIVE_STATE: wgpu::PrimitiveState = wgpu::PrimitiveState {
pub struct State { pub struct State {
pub window_size: PhysicalSize<u32>, pub window_size: PhysicalSize<u32>,
pub mouse_grabbed: bool,
render_context: RenderContext, render_context: RenderContext,
pub mouse_grabbed: bool,
pub hud: Hud,
pub world: World, pub world: World,
pub player: Player, player: Player,
hud: Hud,
} }
impl State { impl State {
@ -117,13 +115,12 @@ impl State {
Self { Self {
window_size: window.inner_size(), window_size: window.inner_size(),
mouse_grabbed: false,
render_context, render_context,
mouse_grabbed: false,
hud,
player,
world, world,
player,
hud,
} }
} }