mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
Counter-Strike support.
This commit is contained in:
parent
645582868d
commit
aec145a847
6 changed files with 21 additions and 2 deletions
|
|
@ -145,6 +145,8 @@ pub enum Request {
|
|||
#[repr(u32)]
|
||||
#[derive(PartialEq, Clone)]
|
||||
pub enum SteamID {
|
||||
/// Counter-Strike
|
||||
CS = 10,
|
||||
/// Team Fortress Classic
|
||||
TFC = 20,
|
||||
/// Day of Defeat
|
||||
|
|
@ -197,7 +199,7 @@ impl SteamID {
|
|||
/// Get ID as App (the engine is specified).
|
||||
pub fn as_app(&self) -> App {
|
||||
match self {
|
||||
SteamID::TFC | SteamID::DOD | SteamID::CSCZ | SteamID::SC => App::GoldSrc(false),
|
||||
SteamID::CS | SteamID::TFC | SteamID::DOD | SteamID::CSCZ | SteamID::SC => App::GoldSrc(false),
|
||||
x => App::Source(Some(x.clone() as u32))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue