[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:
CosminPerRam 2023-06-12 19:38:34 +03:00 committed by GitHub
parent 80637f2398
commit 26ad1f5d19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 250 additions and 7 deletions

View file

@ -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]),
};