mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
[Games] Add Soldier of Fortune 2 support.
This commit is contained in:
parent
b3ba7df6d9
commit
a0681f4259
5 changed files with 15 additions and 1 deletions
|
|
@ -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
9
src/games/sof2.rs
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue