Class OcclusionIndex
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
OcclusionIndex(OcclusionIndex)
Copy-construct: a deep copy of other (the C++ copy constructor).
public OcclusionIndex(OcclusionIndex other)
Parameters
otherOcclusionIndex
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
Size
Byte size of the heightmap; always (1717 + 1616) * 2 = 1090.
public uint Size { get; set; }
Property Value
TileX
The tile x coordinate.
public ushort TileX { get; set; }
Property Value
TileY
The tile y coordinate.
public ushort TileY { get; set; }
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()