Table of Contents

Class SMLayer

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

A terrain texture layer (MCLY, 16 bytes): which tileset texture, the blend/animation flags and the ground-effect link. Layers after the first blend through an alpha map (see MapChunk.alphaMaps). The MCAL offset is derived on write and not exposed.

public class SMLayer : IDisposable
Inheritance
SMLayer
Implements
Inherited Members

Constructors

SMLayer()

public SMLayer()

SMLayer(SMLayer)

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

public SMLayer(SMLayer other)

Parameters

other SMLayer

Properties

AnimationRotation

The animation direction in 45-degree steps (flag bits 0x7).

public uint AnimationRotation { get; }

Property Value

uint

AnimationSpeed

The animation speed (flag bits 0x38).

public uint AnimationSpeed { get; }

Property Value

uint

EffectId

The ground-effect link (a GroundEffectTexture foreign key), or -1 for none (in the alpha clients, a u16 + padding).

public int EffectId { get; set; }

Property Value

int

Flags

Flags; LayerFlags bits (the low 6 bits are animation rotation/speed).

public LayerFlags Flags { get; set; }

Property Value

LayerFlags

TextureId

The texture: an index into the tile's texture list (MTEX names, or the MDID FileDataID table since 8.1).

public uint TextureId { get; set; }

Property Value

uint

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

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

Parameters

l SMLayer
r SMLayer

Returns

bool

operator !=(SMLayer?, SMLayer?)

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

Parameters

l SMLayer
r SMLayer

Returns

bool