mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
overwatch game mode
This commit is contained in:
parent
01ee397e59
commit
63487989b5
1 changed files with 5 additions and 0 deletions
|
|
@ -348,6 +348,7 @@ pub enum GameMode {
|
||||||
FFFours,
|
FFFours,
|
||||||
Classic,
|
Classic,
|
||||||
Left4Dead,
|
Left4Dead,
|
||||||
|
Overwatch,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FromStr for GameMode {
|
impl FromStr for GameMode {
|
||||||
|
|
@ -385,6 +386,8 @@ impl FromStr for GameMode {
|
||||||
"Left 4 Dead 2 Versus League" => Ok(GameMode::Left4Dead),
|
"Left 4 Dead 2 Versus League" => Ok(GameMode::Left4Dead),
|
||||||
"l4d" => Ok(GameMode::Left4Dead),
|
"l4d" => Ok(GameMode::Left4Dead),
|
||||||
"Team Fortress 2 Soldier 1 vs 1 Tournament" => Ok(GameMode::Ones),
|
"Team Fortress 2 Soldier 1 vs 1 Tournament" => Ok(GameMode::Ones),
|
||||||
|
"Overwatch" => Ok(GameMode::Overwatch),
|
||||||
|
"overwatch" => Ok(GameMode::Overwatch),
|
||||||
_ => Err(InvalidGameMode {
|
_ => Err(InvalidGameMode {
|
||||||
text: s.to_string(),
|
text: s.to_string(),
|
||||||
}),
|
}),
|
||||||
|
|
@ -404,6 +407,7 @@ impl GameMode {
|
||||||
GameMode::FFFours => "ff4",
|
GameMode::FFFours => "ff4",
|
||||||
GameMode::Classic => "classic",
|
GameMode::Classic => "classic",
|
||||||
GameMode::Left4Dead => "l4d",
|
GameMode::Left4Dead => "l4d",
|
||||||
|
GameMode::Overwatch => "overwatch",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -418,6 +422,7 @@ impl GameMode {
|
||||||
GameMode::FFFours => "ff4v4",
|
GameMode::FFFours => "ff4v4",
|
||||||
GameMode::Classic => "classic",
|
GameMode::Classic => "classic",
|
||||||
GameMode::Left4Dead => "l4d",
|
GameMode::Left4Dead => "l4d",
|
||||||
|
GameMode::Overwatch => "overwatch",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue