Skip to main content

box3d_rust/recording/
mod.rs

1//! Recording, replay, and world snapshots.
2//!
3//! Port of recording.c / recording.h / recording_replay.c / world_snapshot.c.
4//!
5//! SPDX-FileCopyrightText: 2026 Erin Catto
6//! SPDX-License-Identifier: MIT
7
8mod buffer;
9pub(crate) mod capture;
10pub mod dispatch;
11pub(crate) mod hash;
12pub mod ops;
13pub mod player;
14pub(crate) mod query_capture;
15pub mod query_replay;
16mod registry;
17pub(crate) mod session;
18pub mod snapshot;
19mod write_ops;
20mod writers;
21
22pub use buffer::{RecBuffer, SnapReader};
23pub use capture::rec as record_op;
24pub use hash::{fnv_mix_position, hash_world_state, SNAP_FNV_INIT, SNAP_FNV_PRIME};
25pub use ops::RecOp;
26pub use player::{validate_replay, RecPlayer};
27pub use registry::{hash64_blob, GeometryEntry, GeometryKind, GeometryRegistry, RegistrySlot};
28pub use session::{
29    start_recording, stop_recording, with_recording, world_public_id, RecHeader, RecTag, Recording,
30    REC_MAGIC, REC_VERSION_MAJOR, REC_VERSION_MINOR,
31};
32pub use snapshot::{
33    clone_world_via_snapshot, compute_layout_hash, deserialize_into_shell, serialize_world,
34    SNAP_FLAG_DOUBLE_PRECISION, SNAP_FLAG_VALIDATION, SNAP_LAYOUT_VERSION, SNAP_MAGIC,
35    SNAP_VERSION,
36};