Added Insurgency and Insurgency: Sandstorm implementation.

This commit is contained in:
cosminperram 2022-10-22 19:25:54 +03:00
parent 14abf3d1ab
commit 83bbd5d428
8 changed files with 210 additions and 12 deletions

10
examples/ins.rs Normal file
View file

@ -0,0 +1,10 @@
use gamedig::games::ins;
fn main() {
let response = ins::query("101.100.139.94", Some(27016));
match response {
Err(error) => println!("Couldn't query, error: {error}"),
Ok(r) => println!("{:?}", r)
}
}

10
examples/inss.rs Normal file
View file

@ -0,0 +1,10 @@
use gamedig::games::inss;
fn main() {
let response = inss::query("109.195.19.160", None); //The query port, not the server port
match response {
Err(error) => println!("Couldn't query, error: {error}"),
Ok(r) => println!("{:?}", r)
}
}