Skip to main content

Crate hots_replay

Crate hots_replay 

Source
Expand description

hots-replay: parse Heroes of the Storm replay files (.StormReplay).

Behavior-identical port of Blizzard’s Python heroprotocol.

MPQ container layer and decoding core are verified against the Python reference via golden differential tests (see the repository doc/路线图.md).

Re-exports§

pub use error::Error;
pub use replay::StormReplay;
pub use value::Value;

Modules§

bitstream
Big-endian bit-packed buffer, ported from heroprotocol’s BitPackedBuffer.
decoder
Protocol decoders: BitPackedDecoder (old format) and VersionedDecoder (new format), ported from heroprotocol/decoders.py.
error
Error type shared across the crate.
events
Lazy event stream iterators.
mpq
MPQ (MoPaQ) archive reader for .StormReplay files.
protocol
Per-build protocol version data (typeinfos + event maps).
replay
Top-level replay API.
value
Dynamic value model mirroring the Python dicts produced by heroprotocol.