Removed examples, added a master_querant change gather_settings to none (representing all)

This commit is contained in:
cosminperram 2022-10-22 23:50:32 +03:00
parent 83bbd5d428
commit 88a4c82158
28 changed files with 83 additions and 176 deletions

View file

@ -1,5 +1,5 @@
use crate::{GDResult, valve};
use crate::valve::{ValveProtocol, App, GatheringSettings, Server, ServerRule, ServerPlayer};
use crate::valve::{ValveProtocol, App, Server, ServerRule, ServerPlayer};
#[derive(Debug)]
pub struct Player {
@ -74,10 +74,7 @@ pub fn query(address: &str, port: Option<u16>) -> GDResult<Response> {
let valve_response = ValveProtocol::query(App::CSS, address, match port {
None => 27015,
Some(port) => port
}, GatheringSettings {
players: true,
rules: true
})?;
}, None)?;
Ok(Response::new_from_valve_response(valve_response))
}