[Games] Add Quake 3 support and change players frags from u16 to i16

This commit is contained in:
CosminPerRam 2023-05-30 16:23:37 +03:00
parent af5e0d1fbf
commit 06a2ceeda9
6 changed files with 16 additions and 2 deletions

9
src/games/quake3a.rs Normal file
View file

@ -0,0 +1,9 @@
use std::net::IpAddr;
use crate::GDResult;
use crate::protocols::quake;
use crate::protocols::quake::Response;
use crate::protocols::quake::two::Player;
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<Response<Player>> {
quake::three::query(address, port.unwrap_or(27960), None)
}