mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
Initial valve setup and tf2 game setup
This commit is contained in:
parent
e2be20ee53
commit
8098136d09
10 changed files with 234 additions and 12 deletions
14
examples/tf2.rs
Normal file
14
examples/tf2.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
use gamedig::TF2;
|
||||
|
||||
fn main() {
|
||||
let response = TF2::query("5.15.202.107", None);
|
||||
match response {
|
||||
Err(_) => println!("fuck"),
|
||||
Ok(r) => {
|
||||
println!("{:?}", r);
|
||||
|
||||
()
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue