mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
Added support for Counter-Strike: Source
This commit is contained in:
parent
b5141e8196
commit
aefd8cc43c
5 changed files with 98 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ pub enum Request {
|
|||
/// Supported app id's
|
||||
#[derive(PartialEq)]
|
||||
pub enum App {
|
||||
CSS = 240,
|
||||
TF2 = 440,
|
||||
CSGO = 730,
|
||||
TheShip = 2400
|
||||
|
|
@ -134,6 +135,7 @@ impl TryFrom<u16> for App {
|
|||
|
||||
fn try_from(value: u16) -> GDResult<Self> {
|
||||
match value {
|
||||
x if x == App::CSS as u16 => Ok(App::CSS),
|
||||
x if x == App::TF2 as u16 => Ok(App::TF2),
|
||||
x if x == App::CSGO as u16 => Ok(App::CSGO),
|
||||
x if x == App::TheShip as u16 => Ok(App::TheShip),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue