mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 15:27:28 +00:00
[Games] Add Quake 2 support.
This commit is contained in:
parent
0ceb31bf86
commit
f79f2ea2de
5 changed files with 17 additions and 1 deletions
|
|
@ -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
9
src/games/quake2.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::two::query(address, port.unwrap_or(27910), None)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue