diff --git a/strafe-client/src/session.rs b/strafe-client/src/session.rs index b89e7c3..cedc503 100644 --- a/strafe-client/src/session.rs +++ b/strafe-client/src/session.rs @@ -7,6 +7,16 @@ use strafesnet_common::session::TimeInner as SessionTimeInner; use crate::mouse_interpolator::MouseInterpolator; +pub enum Instruction{ + Input(InputInstruction), + Render, + Resize(winit::dpi::PhysicalSize), + 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 body:crate::physics::Body, pub camera:crate::physics::PhysicsCamera,