mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
[Games] Add Quake 1 support.
This commit is contained in:
parent
c874b463e3
commit
af5e0d1fbf
5 changed files with 15 additions and 1 deletions
|
|
@ -96,3 +96,5 @@ pub mod vr;
|
|||
pub mod cw;
|
||||
/// Quake 2
|
||||
pub mod quake2;
|
||||
/// Quake 1
|
||||
pub mod quake1;
|
||||
|
|
|
|||
9
src/games/quake1.rs
Normal file
9
src/games/quake1.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::one::Player;
|
||||
|
||||
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<Response<Player>> {
|
||||
quake::one::query(address, port.unwrap_or(27500), None)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue