Table of Contents

Class MHDRData

Namespace
WoWLib.Formats.ADT.Chunks
Assembly
WoWLib.dll

The tile header (MHDR, 64 bytes): flags plus offsets to the tile's other chunks. wowlib derives every offset from the written layout, so only the flags and the Cata+ inline MAMP alpha-downscale value are exposed. See https://wowdev.wiki/ADT/v18#MHDR_chunk.

public class MHDRData : IDisposable
Inheritance
MHDRData
Implements
Inherited Members

Constructors

MHDRData()

public MHDRData()

MHDRData(MHDRData)

Copy-construct: a deep copy of other (the C++ copy constructor).

public MHDRData(MHDRData other)

Parameters

other MHDRData

Properties

Flags

Flags; MapHeaderFlags bits.

public MapHeaderFlags Flags { get; set; }

Property Value

MapHeaderFlags

MampValue

The inline MAMP alpha-map downscale value (Cata+): the alpha texture size is 64 / (2^value); an explicit MAMP chunk overrides it.

public byte MampValue { get; set; }

Property Value

byte

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public virtual void Dispose()

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(MHDRData?, MHDRData?)

public static bool operator ==(MHDRData? l, MHDRData? r)

Parameters

l MHDRData
r MHDRData

Returns

bool

operator !=(MHDRData?, MHDRData?)

public static bool operator !=(MHDRData? l, MHDRData? r)

Parameters

l MHDRData
r MHDRData

Returns

bool