Class Mh2OData
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
otherMh2OData
Mh2OData(Vector<MapChunkLiquid>)
public Mh2OData(Vector<MapChunkLiquid> cells)
Parameters
cellsVector<MapChunkLiquid>
Properties
Cells
Liquid for each of the 256 terrain chunks (y * 16 + x).
public Vector<MapChunkLiquid> Cells { get; }
Property Value
Empty
Whether the tile has no liquid at all.
public bool Empty { get; }
Property Value
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
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(Mh2OData?, Mh2OData?)
public static bool operator ==(Mh2OData? l, Mh2OData? r)
Parameters
Returns
operator !=(Mh2OData?, Mh2OData?)
public static bool operator !=(Mh2OData? l, Mh2OData? r)