rename physics instructions
This commit is contained in:
lib/common/src
strafe-client/src
@ -7,16 +7,16 @@ pub type Time=crate::integer::Time<TimeInner>;
|
||||
#[derive(Clone,Debug)]
|
||||
pub enum Instruction{
|
||||
Mouse(MouseInstruction),
|
||||
Other(OtherInstruction),
|
||||
NonMouse(NonMouseInstruction),
|
||||
}
|
||||
impl Instruction{
|
||||
pub const IDLE:Self=Self::Other(OtherInstruction::Other(OtherOtherInstruction::Idle));
|
||||
pub const IDLE:Self=Self::NonMouse(NonMouseInstruction::Misc(MiscInstruction::Idle));
|
||||
}
|
||||
#[derive(Clone,Debug)]
|
||||
pub enum OtherInstruction{
|
||||
pub enum NonMouseInstruction{
|
||||
SetControl(SetControlInstruction),
|
||||
Mode(ModeInstruction),
|
||||
Other(OtherOtherInstruction),
|
||||
Misc(MiscInstruction),
|
||||
}
|
||||
#[derive(Clone,Debug)]
|
||||
pub enum MouseInstruction{
|
||||
@ -50,7 +50,7 @@ pub enum ModeInstruction{
|
||||
Spawn(crate::gameplay_modes::ModeId,crate::gameplay_modes::StageId),
|
||||
}
|
||||
#[derive(Clone,Debug)]
|
||||
pub enum OtherOtherInstruction{
|
||||
pub enum MiscInstruction{
|
||||
/// Idle: there were no input events, but the simulation is safe to advance to this timestep
|
||||
Idle,
|
||||
PracticeFly,
|
||||
|
Reference in New Issue
Block a user