mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
Ballistic Overkill support.
This commit is contained in:
parent
df9005cc9f
commit
eca9757421
6 changed files with 20 additions and 1 deletions
12
src/games/bo.rs
Normal file
12
src/games/bo.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 => 27016,
|
||||
Some(port) => port
|
||||
}, SteamID::BO.as_app(), None, None)?;
|
||||
|
||||
Ok(game::Response::new_from_valve_response(valve_response))
|
||||
}
|
||||
|
|
@ -75,3 +75,5 @@ pub mod cosu;
|
|||
pub mod onset;
|
||||
/// Codename CURE
|
||||
pub mod ccure;
|
||||
/// Ballistic Overkill
|
||||
pub mod bo;
|
||||
|
|
|
|||
|
|
@ -185,6 +185,8 @@ pub enum SteamID {
|
|||
SDTD = 251570,
|
||||
/// Rust
|
||||
RUST = 252490,
|
||||
/// Vallistic Overkill
|
||||
BO = 296300,
|
||||
/// Don't Starve Together
|
||||
DST = 322320,
|
||||
/// Codename CURE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue