From a2508b670860034b4c3f0869dc6d2a026d7fac95 Mon Sep 17 00:00:00 2001 From: Olivia Brooks <109807080+Cutieguwu@users.noreply.github.com> Date: Fri, 28 Mar 2025 18:27:20 -0400 Subject: [PATCH 1/7] Update dependabot.yml --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 42d1417..07edd85 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,6 @@ version: 2 updates: - package-ecosystem: "cargo" # See documentation for possible values - directory: "/" # Location of package manifests + directory: "/*" # Location of package manifests schedule: interval: "daily" -- 2.49.1 From bef1686608a11df62a16b077dcf001683499a86a Mon Sep 17 00:00:00 2001 From: Olivia Brooks <109807080+Cutieguwu@users.noreply.github.com> Date: Fri, 28 Mar 2025 18:30:47 -0400 Subject: [PATCH 2/7] Update dependabot.yml --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 07edd85..58728f3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,6 @@ version: 2 updates: - package-ecosystem: "cargo" # See documentation for possible values - directory: "/*" # Location of package manifests + directories: "/*" # Location of package manifests schedule: interval: "daily" -- 2.49.1 From 0cfb29e2e765dc1d27da7f166316c1b7a606d611 Mon Sep 17 00:00:00 2001 From: Olivia Brooks <109807080+Cutieguwu@users.noreply.github.com> Date: Fri, 28 Mar 2025 18:31:23 -0400 Subject: [PATCH 3/7] Update dependabot.yml --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 58728f3..ccfccc8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,6 @@ version: 2 updates: - package-ecosystem: "cargo" # See documentation for possible values - directories: "/*" # Location of package manifests + directories: ["/*"] # Location of package manifests schedule: interval: "daily" -- 2.49.1 From ed3ff7e1af95492183deb7f4b385a80feaff0c00 Mon Sep 17 00:00:00 2001 From: Olivia Brooks <109807080+Cutieguwu@users.noreply.github.com> Date: Fri, 28 Mar 2025 18:36:00 -0400 Subject: [PATCH 4/7] Update dependabot.yml --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ccfccc8..e611bd2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,6 @@ version: 2 updates: - package-ecosystem: "cargo" # See documentation for possible values - directories: ["/*"] # Location of package manifests + directories: ["/gamelog/", "/miller/"] # Location of package manifests schedule: interval: "daily" -- 2.49.1 From 5cc0022c02711e74ef0b16cb6bf9245def583504 Mon Sep 17 00:00:00 2001 From: Olivia Brooks <109807080+Cutieguwu@users.noreply.github.com> Date: Fri, 28 Mar 2025 18:39:36 -0400 Subject: [PATCH 5/7] Update Cargo.toml --- miller/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miller/Cargo.toml b/miller/Cargo.toml index c76f02a..1d5f2b4 100644 --- a/miller/Cargo.toml +++ b/miller/Cargo.toml @@ -22,4 +22,4 @@ features = [ ] [dependencies.gamelog] -path = "./gamelog" +path = "../gamelog" -- 2.49.1 From 7a7d815edc703894c084477ae626f491ee2ebecd Mon Sep 17 00:00:00 2001 From: Olivia Brooks <109807080+Cutieguwu@users.noreply.github.com> Date: Fri, 28 Mar 2025 18:40:04 -0400 Subject: [PATCH 6/7] Update dependabot.yml --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e611bd2..ccfccc8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,6 @@ version: 2 updates: - package-ecosystem: "cargo" # See documentation for possible values - directories: ["/gamelog/", "/miller/"] # Location of package manifests + directories: ["/*"] # Location of package manifests schedule: interval: "daily" -- 2.49.1 From 2cae3dc9b590bfaac8288d4d90a5cac305fc5c6e Mon Sep 17 00:00:00 2001 From: Cutieguwu Date: Sat, 29 Mar 2025 10:59:46 -0400 Subject: [PATCH 7/7] Commit for device swap. --- gamelog/src/lib.rs | 2 +- gamelog/src/play.rs | 47 ++++++++++++++++++++++++++------------------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/gamelog/src/lib.rs b/gamelog/src/lib.rs index fc2a82e..8d1304f 100644 --- a/gamelog/src/lib.rs +++ b/gamelog/src/lib.rs @@ -5,7 +5,7 @@ mod play; mod terrain; #[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 period::*; diff --git a/gamelog/src/play.rs b/gamelog/src/play.rs index 11a6ea6..0ab629d 100644 --- a/gamelog/src/play.rs +++ b/gamelog/src/play.rs @@ -1,35 +1,40 @@ -use crate::error; +use crate::{TerrainState, error}; use serde::Deserialize; #[derive(Debug, Deserialize, Clone)] pub struct Play { - action: Option, down: Down, - terrain: super::TerrainState, + terrain: TerrainState, } +type Offence = Team; +impl Offence {} + #[derive(Debug, Deserialize, Clone)] -pub enum Action { - CrackStudentBodyRightTackle, - Curls, - FleaFlicker, - HalfbackSlam, - HalfbackSlipScreen, - HalfbackSweep, - Mesh, - PlayActionBoot, - PlayActionComebacks, - PlayActionPowerZero, - PowerZero, - SlantBubble, - SlotOut, - SpeedOption, - StrongFlood, +pub enum Event { + CrackStudentBodyRightTackle(Play), + Curls(Play), + FleaFlicker(Play), + HalfbackSlam(Play), + HalfbackSlipScreen(Play), + HalfbackSweep(Play), + Mesh(Play), + PlayActionBoot(Play), + PlayActionComebacks(Play), + PlayActionPowerZero(Play), + PowerZero(Play), + SlantBubble(Play), + SlotOut(Play), + SpeedOption(Play), + StrongFlood(Play), + Unknown(Play), + Kickoff { offence: Team }, + Turnover { offence: Team }, + Penalty { terrain: TerrainState }, } #[derive(Debug, Deserialize, Clone)] pub enum Down { - Kickoff { offence: Team }, First, Second, Third, @@ -49,6 +54,8 @@ impl Down { #[derive(Debug, Deserialize, Clone)] pub enum Team { ArizonaState, + #[deprecated(since = "0.2.0", note = "Team left the project.")] + BoiseState, Colorado, Iowa, Nebraska, -- 2.49.1