From 89446a933ab184146b0fe1629591832e10ee14b3 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 9 Jan 2025 20:35:55 -0800 Subject: [PATCH] a --- strafe-client/src/session.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,