Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vikpe/quake_clientinfo
Parse QuakeWorld clientinfo strings.
https://github.com/vikpe/quake_clientinfo
parsing quake quakeworld
Last synced: 27 days ago
JSON representation
Parse QuakeWorld clientinfo strings.
- Host: GitHub
- URL: https://github.com/vikpe/quake_clientinfo
- Owner: vikpe
- License: mit
- Created: 2024-05-02T11:57:21.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-04T13:55:13.000Z (5 months ago)
- Last Synced: 2024-10-07T12:38:48.144Z (about 1 month ago)
- Topics: parsing, quake, quakeworld
- Language: Rust
- Homepage: https://crates.io/crates/quake_clientinfo
- Size: 6.84 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_clientinfo [![Test](https://github.com/vikpe/quake_clientinfo/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/vikpe/quake_clientinfo/actions/workflows/test.yml) [![crates](https://img.shields.io/crates/v/quake_clientinfo)](https://crates.io/crates/quake_clientinfo) [![docs.rs](https://img.shields.io/docsrs/quake_clientinfo)](https://docs.rs/quake_clientinfo/)
> Parse QuakeWorld clientinfo strings
## Usage
```rust
use quake_clientinfo::Clientinfo;let info = Clientinfo::from(r#"\team\red\name\Alpha\*spectator\1"#);
assert_eq!(info.name, Some("Alpha".to_string()));
assert_eq!(info.team, Some("red".to_string()));
assert_eq!(info.spectator, Some(1));
assert_eq!(info.topcolor, None);
```## Fields
```rust
pub struct Clientinfo {
pub name: Option,
pub team: Option,
pub topcolor: Option,
pub bottomcolor: Option,
pub spectator: Option,
pub client: Option,
pub bot: Option,
pub chat: Option,
}
```## See also
* [quake_serverinfo](https://github.com/vikpe/quake_serverinfo) - Parse QuakeWorld serverinfo strings
* [quake_infostring](https://github.com/vikpe/quake_infostring) - Parse QuakeWorld info strings