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