mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Change Valve Protocol Rules to HashMap<String, String>
This commit is contained in:
parent
d8aef7d9e5
commit
50012dd49f
4 changed files with 18 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue