From 498c628280502f821cc3ff5c3bc9123029da0e11 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 9 Jan 2025 18:28:15 -0800 Subject: [PATCH] asd --- strafe-client/src/session.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/strafe-client/src/session.rs b/strafe-client/src/session.rs index 71ea9ca..8ddaca7 100644 --- a/strafe-client/src/session.rs +++ b/strafe-client/src/session.rs @@ -1,6 +1,6 @@ // session represents the non-hardware state of the client. // Ideally it is a deterministic state which is atomically updated by instructions, same as the simulation state. -use strafesnet_common::physics::Time as PhysicsTime; +use strafesnet_common::physics::{Instruction as PhysicsInputInstruction,Time as PhysicsTime}; use strafesnet_common::timer::{Scaled,Timer}; use strafesnet_common::physics::TimeInner as PhysicsTimeInner; use strafesnet_common::session::TimeInner as SessionTimeInner; @@ -16,9 +16,15 @@ pub struct Simulation{ physics:crate::physics::PhysicsContext, } +pub struct Replay{ + instruction:Vec, + simulation:Simulation, +} + pub struct SessionState{ user_settings:crate::settings::UserSettings, mouse_interpolator:crate::mouse_interpolator::MouseInterpolator, //gui:GuiState simulation:Simulation, + replays:Vec, }