This commit is contained in:
Quaternions 2025-01-09 20:35:55 -08:00
parent 0a3d965bb6
commit 89446a933a

View File

@ -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<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 body:crate::physics::Body,
pub camera:crate::physics::PhysicsCamera,