Skip to main content

Crate wc3

Crate wc3 

Source
Expand description

Read, edit, and write Warcraft III models, BLP textures, and MPQ archives.

Start with model::Model for a known format version or model::DynamicModel for files whose version is determined at runtime. Both use the same model types for binary MDX and text MDL; import the corresponding codec traits to enable I/O. See model for a complete example and guidance on editing records. blp reads and writes BLP1 and BLP2 encoded texture containers. mpq indexes, streams, creates, and edits MPQ v1–v4 archives.

Modules§

blp
BLP1 and BLP2 texture containers. Read and write BLP1 and BLP2 texture containers.
model
Warcraft III models and their MDX and MDL codecs. Warcraft III model data shared by the MDX and MDL codecs.
mpq
MPQ archive indexing and streaming entry I/O. Index, extract, create, and edit MPQ archives (formats v1 through v4).

Macros§

visit_model
Runs an expression against the typed model inside an DynamicModel.