mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Arma 2: Operation Arrowhead support.
This commit is contained in:
parent
aec145a847
commit
9f861df96b
6 changed files with 22 additions and 3 deletions
12
src/games/arma2oa.rs
Normal file
12
src/games/arma2oa.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 => 2304,
|
||||
Some(port) => port
|
||||
}, SteamID::ARMA2OA.as_app(), None, None)?;
|
||||
|
||||
Ok(game::Response::new_from_valve_response(valve_response))
|
||||
}
|
||||
|
|
@ -51,3 +51,5 @@ pub mod sc;
|
|||
pub mod rust;
|
||||
/// Counter-Strike
|
||||
pub mod cs;
|
||||
/// ARMA 2: Operation Arrowhead
|
||||
pub mod arma2oa;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue