Class SMLayer
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
otherSMLayer
Properties
AnimationRotation
The animation direction in 45-degree steps (flag bits 0x7).
public uint AnimationRotation { get; }
Property Value
AnimationSpeed
The animation speed (flag bits 0x38).
public uint AnimationSpeed { get; }
Property Value
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
Flags
Flags; LayerFlags bits (the low 6 bits are animation rotation/speed).
public LayerFlags Flags { get; set; }
Property Value
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
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 ==(SMLayer?, SMLayer?)
public static bool operator ==(SMLayer? l, SMLayer? r)
Parameters
Returns
operator !=(SMLayer?, SMLayer?)
public static bool operator !=(SMLayer? l, SMLayer? r)