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:
CosminPerRam 2023-10-21 23:13:14 +03:00 committed by GitHub
parent 501524b0da
commit 2cc9e56168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 187 additions and 266 deletions

View file

@ -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,
)?;