Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vikpe/quake_serverinfo
Parse QuakeWorld serverinfo strings.
https://github.com/vikpe/quake_serverinfo
quake quakeworld servers
Last synced: 27 days ago
JSON representation
Parse QuakeWorld serverinfo strings.
- Host: GitHub
- URL: https://github.com/vikpe/quake_serverinfo
- Owner: vikpe
- License: mit
- Created: 2024-04-27T14:27:36.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-16T15:46:48.000Z (4 months ago)
- Last Synced: 2024-09-17T23:57:58.156Z (about 2 months ago)
- Topics: quake, quakeworld, servers
- Language: Rust
- Homepage: https://crates.io/crates/quake_serverinfo
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.YML
- License: LICENSE
Awesome Lists containing this project
README
# quake_serverinfo [![Test](https://github.com/vikpe/quake_serverinfo/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/vikpe/quake_serverinfo/actions/workflows/test.yml) [![crates](https://img.shields.io/crates/v/quake_serverinfo)](https://crates.io/crates/quake_serverinfo) [![docs.rs](https://img.shields.io/docsrs/quake_serverinfo)](https://docs.rs/quake_serverinfo/)
> Parse QuakeWorld serverinfo strings
## Usage
```rust
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
```rust
pub struct Settings {
pub admin: Option,
pub deathmatch: Option,
pub epoch: Option,
pub fpd: Option,
pub fraglimit: Option,
pub gamedir: Option,
pub hostname: Option,
pub ktxmode: Option,
pub ktxver: Option,
pub map: Option,
pub matchtag: Option,
pub maxclients: Option,
pub maxfps: Option,
pub maxspectators: Option,
pub mode: Option,
pub needpass: Option,
pub pm_ktjump: Option,
pub progs: Option,
pub qvm: Option,
pub status: Option,
pub serverdemo: Option,
pub sv_antilag: Option,
pub teamplay: Option,
pub timelimit: Option,
pub version: Option,
pub z_ext: Option,
}
```## See also
* [quake_infostring](https://github.com/vikpe/quake_infostring) - Parse QuakeWorld info strings