3 releases (breaking)
0.3.0 | Jul 16, 2024 |
---|---|
0.2.0 | Jul 16, 2024 |
0.1.0 | May 4, 2024 |
#15 in #quake-world
175 downloads per month
Used in qtvstat
6KB
quake_qtvinfo
Parse QTV info strings
Usage
use quake_qtvinfo::Settings;
let settings = Settings::from(r#"\hostname\QUAKE.SE KTX Qtv\maxclients\100\*version\QTV 1.14"#);
assert_eq!(settings.version, Some("QTV 1.14".to_string()));
assert_eq!(settings.maxclients, Some(100));
assert_eq!(settings.hostname, Some("QUAKE.SE KTX Qtv".to_string()));
Fields
pub struct Settings {
pub hostname: Option<String>,
pub maxclients: Option<u32>,
pub version: Option<String>,
}
See also
- qtvstat - Get information from QTV servers
- quake_clientinfo - Parse QuakeWorld clientinfo strings
- quake_serverinfo - Parse QuakeWorld serverinfo strings
- quake_infostring - Parse QuakeWorld info strings
Dependencies
~24KB