lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit 0a95f492ba - Show all commits

View File

@ -1,7 +1,7 @@
use crate::timer::{TimerFixed,Realtime,Paused,Unpaused}; use crate::timer::{TimerFixed,Realtime,Paused,Unpaused};
use crate::integer::Time; use crate::integer::Time;
#[derive(Clone,Debug)] #[derive(Clone,Copy,Debug)]
pub enum FlagReason{ pub enum FlagReason{
Anticheat, Anticheat,
StyleChange, StyleChange,
@ -42,14 +42,14 @@ impl std::fmt::Display for Error{
} }
impl std::error::Error for Error{} impl std::error::Error for Error{}
#[derive(Clone,Debug)] #[derive(Clone,Copy,Debug)]
enum RunState{ enum RunState{
Created, Created,
Started{timer:TimerFixed<Realtime,Unpaused>}, Started{timer:TimerFixed<Realtime,Unpaused>},
Finished{timer:TimerFixed<Realtime,Paused>}, Finished{timer:TimerFixed<Realtime,Paused>},
} }
#[derive(Clone,Debug)] #[derive(Clone,Copy,Debug)]
pub struct Run{ pub struct Run{
state:RunState, state:RunState,
flagged:Option<FlagReason>, flagged:Option<FlagReason>,