mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
more event parsers
This commit is contained in:
parent
b95d68a845
commit
58100e5f7b
8 changed files with 418 additions and 17 deletions
|
|
@ -14,6 +14,7 @@ use thiserror::Error;
|
|||
pub enum Team {
|
||||
Red,
|
||||
Blue,
|
||||
Spectator,
|
||||
}
|
||||
|
||||
impl Team {
|
||||
|
|
@ -21,6 +22,7 @@ impl Team {
|
|||
match self {
|
||||
Team::Red => "Red",
|
||||
Team::Blue => "Blue",
|
||||
Team::Spectator => "Spectator",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -38,6 +40,7 @@ impl FromStr for Team {
|
|||
match s {
|
||||
"Blue" => Ok(Team::Blue),
|
||||
"Red" => Ok(Team::Red),
|
||||
"Spectator" => Ok(Team::Spectator),
|
||||
_ => Err(()),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue