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 (#100)
* [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
This commit is contained in:
parent
14c3f4525b
commit
52750fba76
37 changed files with 319 additions and 281 deletions
9
src/games/quake3.rs
Normal file
9
src/games/quake3.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(27960)), None)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue