From 02daa8ad2262636e5dc295bc171f20457e3a2a18 Mon Sep 17 00:00:00 2001 From: Cutieguwu Date: Tue, 25 Mar 2025 13:23:16 -0400 Subject: [PATCH] Hotfix: Terrain Distance. --- src/gamelog.rs | 7 +++++++ templates/logfile.ron | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gamelog.rs b/src/gamelog.rs index 6b70da7..08659bc 100644 --- a/src/gamelog.rs +++ b/src/gamelog.rs @@ -34,6 +34,13 @@ enum Quarter { Fourth, } +#[derive(Debug, Deserialize)] +enum TerrainState { + Distance(u8), + GoalLine, + In, +} + #[derive(Debug, Deserialize)] struct Play { action: Option, diff --git a/templates/logfile.ron b/templates/logfile.ron index 0b52b93..9947a0a 100644 --- a/templates/logfile.ron +++ b/templates/logfile.ron @@ -4,7 +4,7 @@ [ GameRecord( - version: "0.0.1", + version: "0.1.0", periods: [ Period( start: First, @@ -15,7 +15,7 @@ down: Kickoff( offence: Nebraska ), - terrain: 0 + terrain: Distance(10) ), ] )