mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
[Games] Serious Sam support.
This commit is contained in:
parent
8992ffe4df
commit
14c5edc1be
6 changed files with 18 additions and 4 deletions
|
|
@ -89,3 +89,5 @@ pub mod vr;
|
|||
pub mod ut;
|
||||
/// Battlefield 1942
|
||||
pub mod bf1942;
|
||||
/// Serious Sam
|
||||
pub mod ss;
|
||||
|
|
|
|||
7
src/games/ss.rs
Normal file
7
src/games/ss.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use crate::GDResult;
|
||||
use crate::protocols::gamespy;
|
||||
use crate::protocols::gamespy::Response;
|
||||
|
||||
pub fn query(address: &str, port: Option<u16>) -> GDResult<Response> {
|
||||
gamespy::one::query(address, port.unwrap_or(25601), None)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue