Table of Contents

Class M2ShadowBatch

Namespace
WoWLib.Formats.M2.Skin
Assembly
WoWLib.dll

An M2 skin shadow batch (Cata+); the client can also generate these from the render batches.

public class M2ShadowBatch : IDisposable
Inheritance
M2ShadowBatch
Implements
Inherited Members

Constructors

M2ShadowBatch()

public M2ShadowBatch()

M2ShadowBatch(byte, byte, ushort, ushort, ushort, ushort, ushort)

public M2ShadowBatch(byte flags, byte flags2, ushort unknown1, ushort submeshId, ushort textureId, ushort colorId, ushort transparencyId)

Parameters

flags byte
flags2 byte
unknown1 ushort
submeshId ushort
textureId ushort
colorId ushort
transparencyId ushort

M2ShadowBatch(M2ShadowBatch)

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

public M2ShadowBatch(M2ShadowBatch other)

Parameters

other M2ShadowBatch

Properties

ColorId

Into the model colors.

public ushort ColorId { get; set; }

Property Value

ushort

Flags

If auto-generated: the source render batch's flags.

public byte Flags { get; set; }

Property Value

byte

Flags2

If auto-generated: bits derived from the material's flags and blend mode.

public byte Flags2 { get; set; }

Property Value

byte

SubmeshId

The submesh shadowed.

public ushort SubmeshId { get; set; }

Property Value

ushort

TextureId

Already looked up.

public ushort TextureId { get; set; }

Property Value

ushort

TransparencyId

Already looked up.

public ushort TransparencyId { get; set; }

Property Value

ushort

Unknown1

Unknown.

public ushort Unknown1 { get; set; }

Property Value

ushort

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

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

Parameters

l M2ShadowBatch
r M2ShadowBatch

Returns

bool

operator !=(M2ShadowBatch?, M2ShadowBatch?)

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

Parameters

l M2ShadowBatch
r M2ShadowBatch

Returns

bool