plaza_client_utils 0.7.1

Client-side prediction, server reconciliation, and entity smoothing for real-time applications. No async runtime and no server crates, so it builds for wasm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Common utility types used throughout the `plaza_client_utils` crate.

/// Represents a sequence number, typically for client inputs or server state updates.
///
/// This number should generally be monotonically increasing for each stream of
/// inputs or updates to which it pertains. It's crucial for ordering inputs
/// during client-side prediction replay and for identifying which inputs have been
/// acknowledged by the server during reconciliation.
pub type SequenceNumber = u64;

/// Represents client-side time, often in milliseconds since a client-defined epoch
/// (e.g., application start, connection establishment).
///
/// Used for timestamping client-generated inputs or for managing client-side
/// timed events. Its exact meaning and resolution are up to the client application.
pub type ClientTimeMs = u64;