Class SMTerrainMaterial
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
materialIdbyte[]
SMTerrainMaterial(SMTerrainMaterial)
Copy-construct: a deep copy of other (the C++ copy constructor).
public SMTerrainMaterial(SMTerrainMaterial other)
Parameters
otherSMTerrainMaterial
Properties
MaterialId
The four per-layer material ids.
public FixedArray<byte> MaterialId { 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()
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 ==(SMTerrainMaterial?, SMTerrainMaterial?)
public static bool operator ==(SMTerrainMaterial? l, SMTerrainMaterial? r)
Parameters
Returns
operator !=(SMTerrainMaterial?, SMTerrainMaterial?)
public static bool operator !=(SMTerrainMaterial? l, SMTerrainMaterial? r)