Commit for device swap.
This commit is contained in:
@@ -5,7 +5,7 @@ mod play;
|
|||||||
mod terrain;
|
mod terrain;
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
pub const MIN_VER: semver::Version = semver::Version::new(0, 2, 0);
|
pub const MIN_VER: semver::Version = semver::Version::new(0, 3, 0);
|
||||||
|
|
||||||
pub use file::LogFile;
|
pub use file::LogFile;
|
||||||
pub use period::*;
|
pub use period::*;
|
||||||
|
|||||||
@@ -1,35 +1,40 @@
|
|||||||
use crate::error;
|
use crate::{TerrainState, error};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
pub struct Play {
|
pub struct Play {
|
||||||
action: Option<Action>,
|
|
||||||
down: Down,
|
down: Down,
|
||||||
terrain: super::TerrainState,
|
terrain: TerrainState,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Offence = Team;
|
||||||
|
impl Offence {}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
pub enum Action {
|
pub enum Event {
|
||||||
CrackStudentBodyRightTackle,
|
CrackStudentBodyRightTackle(Play),
|
||||||
Curls,
|
Curls(Play),
|
||||||
FleaFlicker,
|
FleaFlicker(Play),
|
||||||
HalfbackSlam,
|
HalfbackSlam(Play),
|
||||||
HalfbackSlipScreen,
|
HalfbackSlipScreen(Play),
|
||||||
HalfbackSweep,
|
HalfbackSweep(Play),
|
||||||
Mesh,
|
Mesh(Play),
|
||||||
PlayActionBoot,
|
PlayActionBoot(Play),
|
||||||
PlayActionComebacks,
|
PlayActionComebacks(Play),
|
||||||
PlayActionPowerZero,
|
PlayActionPowerZero(Play),
|
||||||
PowerZero,
|
PowerZero(Play),
|
||||||
SlantBubble,
|
SlantBubble(Play),
|
||||||
SlotOut,
|
SlotOut(Play),
|
||||||
SpeedOption,
|
SpeedOption(Play),
|
||||||
StrongFlood,
|
StrongFlood(Play),
|
||||||
|
Unknown(Play),
|
||||||
|
Kickoff { offence: Team },
|
||||||
|
Turnover { offence: Team },
|
||||||
|
Penalty { terrain: TerrainState },
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
pub enum Down {
|
pub enum Down {
|
||||||
Kickoff { offence: Team },
|
|
||||||
First,
|
First,
|
||||||
Second,
|
Second,
|
||||||
Third,
|
Third,
|
||||||
@@ -49,6 +54,8 @@ impl Down {
|
|||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
pub enum Team {
|
pub enum Team {
|
||||||
ArizonaState,
|
ArizonaState,
|
||||||
|
#[deprecated(since = "0.2.0", note = "Team left the project.")]
|
||||||
|
BoiseState,
|
||||||
Colorado,
|
Colorado,
|
||||||
Iowa,
|
Iowa,
|
||||||
Nebraska,
|
Nebraska,
|
||||||
|
|||||||
Reference in New Issue
Block a user