[Games] Add Quake 2 support.

This commit is contained in:
CosminPerRam 2023-05-30 15:57:17 +03:00
parent 0ceb31bf86
commit f79f2ea2de
5 changed files with 17 additions and 1 deletions

View file

@ -94,3 +94,5 @@ pub mod ut;
pub mod vr;
/// Crysis Wars
pub mod cw;
/// Quake 2
pub mod quake2;

9
src/games/quake2.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::two::query(address, port.unwrap_or(27910), None)
}