Valve PLAYERS and RULES request first implementations

This commit is contained in:
CosminPerRam 2022-10-18 01:40:37 +03:00
parent 9ab4b8a7fd
commit 92d9649008
3 changed files with 198 additions and 47 deletions

View file

@ -1,5 +1,5 @@
use crate::errors::GDError;
use crate::valve::{Response, ValveProtocol, App};
use crate::valve::{Response, ValveProtocol, App, GatheringSettings};
pub struct TF2;
@ -8,6 +8,10 @@ impl TF2 {
ValveProtocol::query(App::TF2, address, match port {
None => 27015,
Some(port) => port
}, true, true)
}, GatheringSettings {
info: false,
players: false,
rules: true
})
}
}