mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
* [Games] Update game definitions to match node-gamedig names * Update game file names to match definitions * [Games] rename minecraft definitions to better match node * [Games] Add test that all game files match definition name * Update SteamApp to match node names * [Games] Update the forest to match node-GameDig#367 * Clippy fix in games test * [Docs] Update GAMES.md with new names * [DOCS] Update changelog
9 lines
333 B
Rust
9 lines
333 B
Rust
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(27960)), None)
|
|
}
|