Fix PAT notation and Touchdown notations. Backwards compatible w/ v3.0.0 if

`implicit_some` enabled in RON log and no PAT specified within.
This commit is contained in:
Cutieguwu
2025-03-31 18:39:05 -04:00
parent 46c806e537
commit f2a41be8d1
8 changed files with 31 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
use crate::{Play, ScoreChange, Team, TerrainState};
use crate::{Play, Team, TerrainState};
use serde::Deserialize;
@@ -10,5 +10,13 @@ pub enum Event {
Kickoff(Offence),
Turnover(Offence),
Penalty(TerrainState),
ScoreChange(ScoreChange),
Score(u8),
Pat(PatPoints),
}
#[derive(Debug, Deserialize, Clone, PartialEq)]
pub enum PatPoints {
Fail,
One,
Two,
}