Skip to main content

Crate w3grs

Crate w3grs 

Source
Expand description

Warcraft III replay parsing library.

This crate is a faithful Rust port of the public parser behavior from w3gjs, with layered APIs for raw replay parsing, metadata extraction, game data blocks, and high-level melee replay summaries.

Re-exports§

pub use action::ActionParser;
pub use error::Error;
pub use error::Result;
pub use game_data::GameDataParser;
pub use metadata::MetadataParser;
pub use raw::RawParser;
pub use replay::ObserverMode;
pub use replay::ParsedReplay;
pub use replay::ParserOutput;
pub use replay::W3GReplay;
pub use replay_parser::ReplayParser;
pub use replay_parser::ReplayParserOutput;
pub use replay_parser::TimedAction;
pub use replay_parser::TimedActions;
pub use replay_parser::frame_from_ms;

Modules§

action
Action parser port.
buffer
convert
Conversion helpers ported from w3gjs/src/convert.ts.
error
formatters
Formatting helpers ported from w3gjs/src/parsers/formatters.ts.
game_data
Game data block parser port.
mappings
Warcraft III object mappings ported from w3gjs/src/mappings.ts.
metadata
Replay metadata parser port.
player
High-level player accumulator port.
raw
Raw replay parser port.
replay
High-level replay parser port.
replay_parser
Low-level replay parser facade port.
retraining
Hero ability retraining helpers port.
sort
Player sort helper port.
types