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
- W3X:
War3MapW3x - W3I:
War3MapW3i - WTS:
War3MapWts - BLP:
BlpImage - TGA:
TgaImage
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§
- BLP image
- TGA image
- Image with basic metadata and
image::RgbaImagedata - Import table
- If file exists and extracted successfully, the struct is
Some(..)Otherwise, the struct isNone - Map info for
war3map.w3ifile - Warcraft 3 map entry
- String table
Enums§
- Custom error types
Traits§
- Trait to load from binary array and parse it into a struct