Table of Contents

Class Mh2OData

Namespace
WoWLib.Formats.ADT
Assembly
WoWLib.dll

The tile's liquid (MH2O, WotLK+): one MapChunkLiquid per terrain cell, in the 16x16 row-major cell order. Decoded from the chunk's offset structure and re-laid on write (the binary offsets are derived). Index it by cell = y * 16 + x.

public class Mh2OData : IDisposable
Inheritance
Mh2OData
Implements
Inherited Members

Constructors

Mh2OData()

public Mh2OData()

Mh2OData(Mh2OData)

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

public Mh2OData(Mh2OData other)

Parameters

other Mh2OData

Mh2OData(Vector<MapChunkLiquid>)

public Mh2OData(Vector<MapChunkLiquid> cells)

Parameters

cells Vector<MapChunkLiquid>

Properties

Cells

Liquid for each of the 256 terrain chunks (y * 16 + x).

public Vector<MapChunkLiquid> Cells { get; }

Property Value

Vector<MapChunkLiquid>

Empty

Whether the tile has no liquid at all.

public bool Empty { get; }

Property Value

bool

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 ==(Mh2OData?, Mh2OData?)

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

Parameters

l Mh2OData
r Mh2OData

Returns

bool

operator !=(Mh2OData?, Mh2OData?)

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

Parameters

l Mh2OData
r Mh2OData

Returns

bool