Crate wow_alchemy_adt

Crate wow_alchemy_adt 

Source

Modules§

split_adt

Structs§

Adt
Main ADT structure that holds all the parsed data for a terrain file
AdtBuilder
Builder for creating new ADT files
AdtStreamer
Streaming ADT parser that processes chunks one at a time
ChunkHeader
Common chunk header structure for all chunk types
DoodadPlacement
Doodad placement information
LiquidVertex
Liquid vertex data for pre-WotLK
MampChunk
MAMP chunk - texture amplifier (Cataclysm+) This chunk is exactly 4 bytes and contains a single u32 value
McalSubchunk
MCAL subchunk - alpha maps
MccvSubchunk
MCCV subchunk - vertex colors
McinChunk
MCIN chunk - map chunk index information
MclqSubchunk
MCLQ subchunk - legacy liquid data (pre-WotLK)
MclySubchunk
MCLY subchunk - texture layer information
McnkChunk
MCNK chunk - map chunk data
McnkEntry
Entry in MCIN chunk for a map chunk
McnkTextureLayer
MCNK texture layer information
McnrSubchunk
MCNR subchunk - normal vectors
McrdSubchunk
MCRD subchunk - map object references
McrfSubchunk
MCRF subchunk - doodad references
McshSubchunk
MCSH subchunk - shadow map
McvtSubchunk
MCVT subchunk - height map vertices
MddfChunk
MDDF chunk - doodad placement information
MergeOptions
Options for merging ADT files
MfboChunk
MFBO chunk - flight boundaries (TBC+)
Mh2oChunk
MH2O chunk - water data (WotLK+)
Mh2oData
Water data for a single chunk
Mh2oEntry
Water data for a single chunk
Mh2oInstance
MH2O water instance (layer)
Mh2oVertex
Water vertex data
MhdrChunk
MHDR chunk - header containing offsets to other chunks
MmdxChunk
MMDX chunk - model filenames
MmidChunk
MMID chunk - model indices
ModelExportOptions
Options for 3D model export
ModelPlacement
Model placement information
ModfChunk
MODF chunk - model placement information
MtexChunk
MTEX chunk - texture filenames
MtfxChunk
MTFX chunk - texture effects (Cataclysm+)
MtxpChunk
MTXP chunk - texture parameters (MoP+) Variable size chunk containing texture transformation parameters
MverChunk
MVER chunk - file version information
MwidChunk
MWID chunk - WMO indices
MwmoChunk
MWMO chunk - WMO filenames
NormalMapOptions
Options for normal map extraction
TextureEffect
Texture effect data
TextureLayer
Texture layer information
TextureParams
Texture transformation parameters
ValidationReport
Report of validation results
WaterVertex
Individual water vertex
WaterVertexData
Water vertex information

Enums§

AdtError
Error types for ADT parser
AdtVersion
Represents the different World of Warcraft versions that ADT files can be from
MclyFlags
MCLY texture layer flags
ModelFormat
Format for 3D model export
NormalChannelEncoding
Normal map channel encoding
NormalMapFormat
Format for normal map export
StreamedChunk
A chunk read from the stream
ValidationLevel
Validation levels
WaterLevelData
Water height information

Functions§

convert_adt
Convert an ADT from one version to another
convert_alpha_maps
Convert alpha maps between different versions
convert_area_id
Convert area IDs between different versions
convert_mcnk
Convert a MCNK chunk from one version to another
convert_mcnk_chunks
Convert multiple MCNK chunks
convert_texture_layers
Convert texture layers from one version to another
count_matching_chunks
Count terrain chunks matching a predicate
create_flat_terrain
Helper function to create a flat terrain
export_to_3d
Export an ADT to a 3D model format
extract_normal_map
Extract a normal map from an ADT file
extract_portion
Extract a portion of an ADT into a new ADT
iterate_mcnk_chunks
Iterate over all MCNK chunks in an ADT file
merge_adts
Merge multiple ADT files into one
merge_chunk
Merge a specific chunk from one ADT into another
open_adt_stream
Open an ADT file for streaming
validate_adt
Validate an ADT file

Type Aliases§

Result
Result type alias for ADT parser operations