flatland-protocol 0.2.16

Flatland3 wire protocol types and codecs
Documentation
//! Flatland3 client ↔ server wire types.
//!
//! v1 uses a versioned envelope and serde-compatible payloads. The default
//! on-wire codec is **postcard** (see [`Codec`] and benchmark in `codec_bench`).

pub mod codec;
pub mod frame;
pub mod progression;
pub mod types;

pub use codec::{Codec, CodecError, PostcardCodec};
pub use frame::{
    read_client_message, read_server_message, write_client_message, write_server_message,
    FrameError,
};
pub use progression::{
    primary_internal, LevelProgress, ProgressionCurve, PRIMARY_STAT_ROWS, SKILL_ROWS,
};
pub use types::*;

/// Current protocol version negotiated at session start.
/// Bump when postcard payload layout changes (blueprints v3, vitals regen, …).
pub const PROTOCOL_VERSION: u16 = 10;