mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Added Day of Defeat: Source support and renamed The_Ship to TS
This commit is contained in:
parent
aefd8cc43c
commit
a5f9e755ff
7 changed files with 121 additions and 24 deletions
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
use gamedig::games::the_ship;
|
||||
|
||||
fn main() {
|
||||
let response = the_ship::query("46.4.48.226", Some(27017));
|
||||
match response {
|
||||
Err(error) => println!("Couldn't query, error: {error}"),
|
||||
Ok(r) => println!("{:?}", r)
|
||||
}
|
||||
}
|
||||
|
||||
use gamedig::games::dods;
|
||||
|
||||
fn main() {
|
||||
let response = dods::query("88.99.28.151", Some(27055));
|
||||
match response {
|
||||
Err(error) => println!("Couldn't query, error: {error}"),
|
||||
Ok(r) => println!("{:?}", r)
|
||||
}
|
||||
}
|
||||
10
examples/ts.rs
Normal file
10
examples/ts.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
use gamedig::games::ts;
|
||||
|
||||
fn main() {
|
||||
let response = ts::query("46.4.48.226", Some(27017));
|
||||
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