mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
[Games] Add Hell Let Loose support.
This commit is contained in:
parent
06a2ceeda9
commit
b3ba7df6d9
6 changed files with 26 additions and 1 deletions
17
src/games/hll.rs
Normal file
17
src/games/hll.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use std::net::IpAddr;
|
||||
use crate::{
|
||||
protocols::valve::{self, game, SteamApp},
|
||||
GDResult,
|
||||
};
|
||||
|
||||
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<game::Response> {
|
||||
let valve_response = valve::query(
|
||||
address,
|
||||
port.unwrap_or(26420),
|
||||
SteamApp::HLL.as_engine(),
|
||||
None,
|
||||
None,
|
||||
)?;
|
||||
|
||||
Ok(game::Response::new_from_valve_response(valve_response))
|
||||
}
|
||||
|
|
@ -100,3 +100,5 @@ pub mod quake2;
|
|||
pub mod quake1;
|
||||
/// Quake 3: Arena
|
||||
pub mod quake3a;
|
||||
/// Hell Let Loose
|
||||
pub mod hll;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue