Class M2ShadowBatch
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
flagsbyteflags2byteunknown1ushortsubmeshIdushorttextureIdushortcolorIdushorttransparencyIdushort
M2ShadowBatch(M2ShadowBatch)
Copy-construct: a deep copy of other (the C++ copy constructor).
public M2ShadowBatch(M2ShadowBatch other)
Parameters
otherM2ShadowBatch
Properties
ColorId
Into the model colors.
public ushort ColorId { get; set; }
Property Value
Flags
If auto-generated: the source render batch's flags.
public byte Flags { get; set; }
Property Value
Flags2
If auto-generated: bits derived from the material's flags and blend mode.
public byte Flags2 { get; set; }
Property Value
SubmeshId
The submesh shadowed.
public ushort SubmeshId { get; set; }
Property Value
TextureId
Already looked up.
public ushort TextureId { get; set; }
Property Value
TransparencyId
Already looked up.
public ushort TransparencyId { get; set; }
Property Value
Unknown1
Unknown.
public ushort Unknown1 { 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 ==(M2ShadowBatch?, M2ShadowBatch?)
public static bool operator ==(M2ShadowBatch? l, M2ShadowBatch? r)
Parameters
Returns
operator !=(M2ShadowBatch?, M2ShadowBatch?)
public static bool operator !=(M2ShadowBatch? l, M2ShadowBatch? r)