mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-17 10:51:05 +00:00
[Games] Add Warsow support.
This commit is contained in:
parent
58f7ff8aab
commit
0f9a10f2fb
6 changed files with 16 additions and 0 deletions
9
src/games/warsow.rs
Normal file
9
src/games/warsow.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
use crate::protocols::quake;
|
||||
use crate::protocols::quake::two::Player;
|
||||
use crate::protocols::quake::Response;
|
||||
use crate::GDResult;
|
||||
use std::net::{IpAddr, SocketAddr};
|
||||
|
||||
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<Response<Player>> {
|
||||
quake::three::query(&SocketAddr::new(*address, port.unwrap_or(44400)), None)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue