Change Valve Protocol Rules to HashMap<String, String>

This commit is contained in:
CosminPerRam 2023-01-12 23:04:57 +02:00
parent d8aef7d9e5
commit 50012dd49f
4 changed files with 18 additions and 22 deletions

View file

@ -1,6 +1,7 @@
use std::collections::HashMap;
use crate::GDResult;
use crate::protocols::valve;
use crate::protocols::valve::{Server, ServerRule, ServerPlayer, get_optional_extracted_data, SteamID};
use crate::protocols::valve::{Server, ServerPlayer, get_optional_extracted_data, SteamID};
#[derive(Debug)]
pub struct TheShipPlayer {
@ -42,7 +43,7 @@ pub struct Response {
pub tv_port: Option<u16>,
pub tv_name: Option<String>,
pub keywords: Option<String>,
pub rules: Vec<ServerRule>,
pub rules: HashMap<String, String>,
pub mode: u8,
pub witnesses: u8,
pub duration: u8