mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Game] Apply new id naming (#114)
* Apply new id naming * Fix failing CI on all features * Update changelog * Rename tf2 example to teamfortress2 * Fix typo in steamapp game names * Rename minecraft legacy versions * Apply CI node badge fix by Douile * Add/Update badge --------- Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
b4c61781fb
commit
5280ecb3c6
38 changed files with 231 additions and 232 deletions
8
src/games/battlefield1942.rs
Normal file
8
src/games/battlefield1942.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use crate::protocols::gamespy;
|
||||
use crate::protocols::gamespy::one::Response;
|
||||
use crate::GDResult;
|
||||
use std::net::{IpAddr, SocketAddr};
|
||||
|
||||
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<Response> {
|
||||
gamespy::one::query(&SocketAddr::new(*address, port.unwrap_or(23000)), None)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue