This commit is contained in:
Quaternions 2024-07-31 16:09:29 -07:00
parent b5b20e0dba
commit 9cdb354cba

View File

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