mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
* [valve_app_restructure] Initial change * [valve_app_restructure] Some GoldSrc split packet changes * [valve_app_restructure] Counter-Strike: Condition Zero implementation. * [valve_app_restructure] Docs changes * [valve_app_restructure] Added obsolete gold src response * [valve_app_restructure] Day of Defeat implementation.
12 lines
399 B
Rust
12 lines
399 B
Rust
use crate::GDResult;
|
|
use crate::protocols::valve;
|
|
use crate::protocols::valve::{game, SteamID};
|
|
|
|
pub fn query(address: &str, port: Option<u16>) -> GDResult<game::Response> {
|
|
let valve_response = valve::query(address, match port {
|
|
None => 27015,
|
|
Some(port) => port
|
|
}, SteamID::CSCZ.app(), None)?;
|
|
|
|
Ok(game::Response::new_from_valve_response(valve_response))
|
|
}
|