Crate war3parser

Source
Expand description

§War3Parser

war3parser is a library for parsing and extracting Warcraft III map files.

§Features

  • Extract files from MPQ archives. (As long as the file name is known and the file exists in the MPQ)
  • Parse file formats into Rust structs

§Supported parse targets

And a helper struct to include all supported metadata of a map file: War3MapMetadata

§Implementation

Most of the struct implemented BinaryReadable trait, which provides a load function to load the struct from a binary reader.

We use the trait implementation chain to load the struct from a file.

Modules§

  • Parsers to do the actual parsing
  • Helper struct that includes all supported metadata of a map file Helper struct that includes all supported metadata of a map file

Structs§

Enums§

Traits§

  • Trait to load from binary array and parse it into a struct