#parser #quake #server #quake-world

quake_serverinfo

Parse QuakeWorld serverinfo strings

9 releases (breaking)

0.7.0 Jul 16, 2024
0.6.0 Jul 16, 2024
0.5.0 Jul 16, 2024
0.4.1 Jul 16, 2024
0.1.0 Apr 27, 2024

#1188 in Parser implementations

Download history 1/week @ 2024-06-21 1/week @ 2024-06-28 349/week @ 2024-07-12 51/week @ 2024-07-19 37/week @ 2024-07-26 5/week @ 2024-08-02 1/week @ 2024-08-23 13/week @ 2024-09-13 18/week @ 2024-09-20 17/week @ 2024-09-27 5/week @ 2024-10-04

53 downloads per month
Used in 2 crates

MIT license

11KB
144 lines

quake_serverinfo Test crates docs.rs

Parse QuakeWorld serverinfo strings

Usage

use quake_serverinfo::Settings;

let settings = Settings::from(r#"\maxfps\77\matchtag\kombat"#);
assert_eq!(settings.maxfps, Some(77));
assert_eq!(settings.matchtag, Some("kombat".to_string()));

Fields

pub struct Settings {
    pub admin: Option<String>,
    pub deathmatch: Option<i32>,
    pub epoch: Option<i32>,
    pub fpd: Option<i32>,
    pub fraglimit: Option<i32>,
    pub gamedir: Option<String>,
    pub hostname: Option<String>,
    pub ktxmode: Option<String>,
    pub ktxver: Option<String>,
    pub map: Option<String>,
    pub matchtag: Option<String>,
    pub maxclients: Option<i32>,
    pub maxfps: Option<i32>,
    pub maxspectators: Option<i32>,
    pub mode: Option<String>,
    pub needpass: Option<i32>,
    pub pm_ktjump: Option<i32>,
    pub progs: Option<String>,
    pub qvm: Option<String>,
    pub status: Option<String>,
    pub serverdemo: Option<String>,
    pub sv_antilag: Option<i32>,
    pub teamplay: Option<i32>,
    pub timelimit: Option<i32>,
    pub version: Option<String>,
    pub z_ext: Option<i32>,
}

See also

Dependencies

~20–330KB