Table of Contents

Class OcclusionIndex

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

One MAOI record: which tile the next occlusion heightmap belongs to and where its 545 int16 values sit inside the MAOH payload.

public class OcclusionIndex : IDisposable
Inheritance
OcclusionIndex
Implements
Inherited Members

Constructors

OcclusionIndex()

public OcclusionIndex()

OcclusionIndex(ushort, ushort, uint, uint)

public OcclusionIndex(ushort tileX, ushort tileY, uint offset, uint size)

Parameters

tileX ushort
tileY ushort
offset uint
size uint

OcclusionIndex(OcclusionIndex)

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

public OcclusionIndex(OcclusionIndex other)

Parameters

other OcclusionIndex

Properties

Offset

Byte offset of this tile's heightmap inside the MAOH payload. Stored as-is: MAOH round-trips verbatim, so offsets stay valid; keep them consistent when editing.

public uint Offset { get; set; }

Property Value

uint

Size

Byte size of the heightmap; always (1717 + 1616) * 2 = 1090.

public uint Size { get; set; }

Property Value

uint

TileX

The tile x coordinate.

public ushort TileX { get; set; }

Property Value

ushort

TileY

The tile y coordinate.

public ushort TileY { get; set; }

Property Value

ushort

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