mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-19 03:41:05 +00:00
feat: Remove SteamApp (#142)
* Remove the SteamApp enum. * Further removal * Replace SteamApp with Engine on game! usage * Add removal of SteamApp in changelog * docs: Update reference of SteamApp to Engine * Update the docs of the Engine type to be more descriptive.
This commit is contained in:
parent
501524b0da
commit
2cc9e56168
10 changed files with 187 additions and 266 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use crate::protocols::valve::Engine;
|
||||
use crate::{
|
||||
protocols::valve::{self, game, SteamApp},
|
||||
protocols::valve::{self, game},
|
||||
GDErrorKind::TypeParse,
|
||||
GDResult,
|
||||
};
|
||||
|
|
@ -8,7 +9,7 @@ use std::net::{IpAddr, SocketAddr};
|
|||
pub fn query(address: &IpAddr, port: Option<u16>) -> GDResult<game::Response> {
|
||||
let mut valve_response = valve::query(
|
||||
&SocketAddr::new(*address, port.unwrap_or(7780)),
|
||||
SteamApp::BATTALION1944.as_engine(),
|
||||
Engine::new(489_940),
|
||||
None,
|
||||
None,
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue