mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Initial the ship support
This commit is contained in:
parent
192d50a11d
commit
5cf5615265
3 changed files with 20 additions and 2 deletions
|
|
@ -102,8 +102,8 @@ impl TryFrom<u16> for App {
|
|||
fn try_from(value: u16) -> Result<Self, Self::Error> {
|
||||
match value {
|
||||
x if x == App::TF2 as u16 => Ok(App::TF2),
|
||||
x if x == App::TF2 as u16 => Ok(App::CSGO),
|
||||
x if x == App::TF2 as u16 => Ok(App::TheShip),
|
||||
x if x == App::CSGO as u16 => Ok(App::CSGO),
|
||||
x if x == App::TheShip as u16 => Ok(App::TheShip),
|
||||
_ => Err(GDError::UnknownEnumCast),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue