5 unstable releases
0.2.3 | Nov 29, 2022 |
---|---|
0.2.2 | Nov 26, 2022 |
0.2.1 | Nov 26, 2022 |
0.1.0 | Nov 22, 2022 |
0.0.2 | Nov 12, 2022 |
#694 in Games
34 downloads per month
Used in qwsak
160KB
4K
SLoC
quakeworld
A rust library for working with quakeworld.
available features
-
protocol
- quakeworld::protocol::message::Message - reading data types from a byte array
- quakeworld::protocol::types - data types
-
network
- quakeworld::network::channel::Channel - keeps track of connection sequences
- quakeworld::network::connection::client::Client - client implementation that handles packets and provides packets that need to be send to keep up a connection with a server. See here for a minimal client implimentation. Only tested with
mvdsv 0.36-dev
.
-
mvd
- quakeworld::mvd::Mvd - parsing mvd file format
-
state
- quakeworld::state::State - using Message types to create a game state
-
utils
- quakeworld::utils::AsciiConverter - converting byte arrays to printable ascii
- quakeworld::utils::Userinfo - parsing userinfo strings
- quakeworld::utils::trace - functions to print message read traces (see here for an example
-
crc
- quakeworld::crc - checksum functions
-
ascii_strings - when reading strings they will be converted to printable ascii, original bytes are also being kept see here
Features that are enabled by default are protocol, mvd, and util.
Everything is serializable via serde (json,...). Supports wasm as target ('it compiles' cargo build --target wasm32-unknown-unknown
)
Goals
probably in order of being implemented too
- qwd - qwd format parsing
- mvd - creating a mvd from states
Documentation
could be better, aka non existing at the moment
Example
Dependencies
~1–8.5MB
~78K SLoC