Table of Contents

Class SMTerrainMaterial

Namespace
WoWLib.Formats.ADT.Chunks
Assembly
WoWLib.dll

Per-layer terrain material ids (MCMT, Cata+): four TerrainMaterial foreign keys, one per MCLY layer.

public class SMTerrainMaterial : IDisposable
Inheritance
SMTerrainMaterial
Implements
Inherited Members

Constructors

SMTerrainMaterial()

public SMTerrainMaterial()

SMTerrainMaterial(byte[])

public SMTerrainMaterial(byte[] materialId)

Parameters

materialId byte[]

SMTerrainMaterial(SMTerrainMaterial)

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

public SMTerrainMaterial(SMTerrainMaterial other)

Parameters

other SMTerrainMaterial

Properties

MaterialId

The four per-layer material ids.

public FixedArray<byte> MaterialId { get; set; }

Property Value

FixedArray<byte>

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

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

Parameters

l SMTerrainMaterial
r SMTerrainMaterial

Returns

bool

operator !=(SMTerrainMaterial?, SMTerrainMaterial?)

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

Parameters

l SMTerrainMaterial
r SMTerrainMaterial

Returns

bool