mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Games: Codename CURE support.
This commit is contained in:
parent
bdaa1c4f64
commit
df9005cc9f
6 changed files with 21 additions and 2 deletions
12
src/games/ccure.rs
Normal file
12
src/games/ccure.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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::CCURE.as_app(), None, None)?;
|
||||
|
||||
Ok(game::Response::new_from_valve_response(valve_response))
|
||||
}
|
||||
|
|
@ -73,3 +73,5 @@ pub mod dst;
|
|||
pub mod cosu;
|
||||
/// Onset
|
||||
pub mod onset;
|
||||
/// Codename CURE
|
||||
pub mod ccure;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue