mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Protocol] Add GameSpy 2 support. (#47)
* [Protocol] Add initial files * [Protocol] Add test to test the request * [Protocol] Add initial query response type * [Protocol] Parse teams * [Protocol] Add players parse and add nice macro * [Protocol] Add proper derives to structs * [Protocol] Change to get all informations from one request * [Protocol] Add Halo: CE support and update CHANGELOG.md * [Protocol] Remove a .clone usage * [Protocol] Add todo comment regarding code performance * [Protocol] Use iterator instead of index range
This commit is contained in:
parent
80637f2398
commit
26ad1f5d19
10 changed files with 250 additions and 7 deletions
|
|
@ -27,6 +27,7 @@ use gamedig::{
|
|||
dst,
|
||||
ffow,
|
||||
gm,
|
||||
haloce,
|
||||
hl2dm,
|
||||
hldms,
|
||||
hll,
|
||||
|
|
@ -186,6 +187,8 @@ fn main() -> GDResult<()> {
|
|||
"quake3a" => println!("{:#?}", quake3a::query(ip, port)?),
|
||||
"hll" => println!("{:#?}", hll::query(ip, port)?),
|
||||
"sof2" => println!("{:#?}", sof2::query(ip, port)?),
|
||||
"_gamespy2" => println!("{:#?}", gamespy::two::query(address, None)),
|
||||
"haloce" => println!("{:#?}", haloce::query(ip, port)?),
|
||||
_ => panic!("Undefined game: {}", args[1]),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue