[Games] Add Soldier of Fortune 2 support.

This commit is contained in:
CosminPerRam 2023-05-30 18:53:23 +03:00
parent b3ba7df6d9
commit a0681f4259
5 changed files with 15 additions and 1 deletions

View file

@ -102,3 +102,5 @@ pub mod quake1;
pub mod quake3a;
/// Hell Let Loose
pub mod hll;
/// Soldier of Fortune 2
pub mod sof2;

9
src/games/sof2.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(20100), None)
}