Reorder fields in State
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6c50c6ac70
commit
d006c6f9ef
1 changed files with 6 additions and 9 deletions
15
src/state.rs
15
src/state.rs
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue