Table of Contents

Class WDTHeader

Namespace
WoWLib.Formats.WDT.Root.Chunks
Assembly
WoWLib.dll

An MPHD map header, abstract over the client version. Construct a concrete version with WDTHeader.for_version(expansion).

public class WDTHeader : IDisposable
Inheritance
WDTHeader
Implements
Derived
Inherited Members

Constructors

WDTHeader()

public WDTHeader()

WDTHeader(WDTHeader)

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

public WDTHeader(WDTHeader other)

Parameters

other WDTHeader

Properties

Flags

Map-wide flags; MapHeaderFlags bits.

public MapHeaderFlags Flags { get; set; }

Property Value

MapHeaderFlags

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()

ForVersion(ClientVersion)

A fresh WDTHeader for an exact client version — the only axis that can name a Classic client, whose files follow the engine its build was cut on rather than its 1.15 / 4.4 version number.

public static WDTHeader ForVersion(ClientVersion version)

Parameters

version ClientVersion

Returns

WDTHeader

ForVersion(Expansion)

A fresh WDTHeader for the given era, as the family base — the dynamic twin of the typed Era factories.

public static WDTHeader ForVersion(Expansion era)

Parameters

era Expansion

Returns

WDTHeader