Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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