mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
Added support for Half-Life 2 Deathmatch
This commit is contained in:
parent
d477bbb178
commit
4e9458f102
5 changed files with 107 additions and 9 deletions
10
examples/hl2dm.rs
Normal file
10
examples/hl2dm.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
use gamedig::games::hl2dm;
|
||||
|
||||
fn main() {
|
||||
let response = hl2dm::query("74.91.118.209", None);
|
||||
match response {
|
||||
Err(error) => println!("Couldn't query, error: {error}"),
|
||||
Ok(r) => println!("{:?}", r)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue