a
This commit is contained in:
parent
0a3d965bb6
commit
89446a933a
@ -7,6 +7,16 @@ use strafesnet_common::session::TimeInner as SessionTimeInner;
|
|||||||
|
|
||||||
use crate::mouse_interpolator::MouseInterpolator;
|
use crate::mouse_interpolator::MouseInterpolator;
|
||||||
|
|
||||||
|
pub enum Instruction{
|
||||||
|
Input(InputInstruction),
|
||||||
|
Render,
|
||||||
|
Resize(winit::dpi::PhysicalSize<u32>),
|
||||||
|
ChangeMap(strafesnet_common::map::CompleteMap),
|
||||||
|
//SetPaused is not an InputInstruction: the physics doesn't know that it's paused.
|
||||||
|
SetPaused(bool),
|
||||||
|
//Graphics(crate::graphics_worker::Instruction),
|
||||||
|
}
|
||||||
|
|
||||||
pub struct FrameState{
|
pub struct FrameState{
|
||||||
pub body:crate::physics::Body,
|
pub body:crate::physics::Body,
|
||||||
pub camera:crate::physics::PhysicsCamera,
|
pub camera:crate::physics::PhysicsCamera,
|
||||||
|
Loading…
Reference in New Issue
Block a user