Table of Contents

Class M2LightDetail

Namespace
WoWLib.Formats.M2.Chunked.Record
Assembly
WoWLib.dll

A DETL record (9.0+): per-light flags, shadow-RT scale and diffuse multiplier (raw half-floats).

public class M2LightDetail : IDisposable
Inheritance
M2LightDetail
Implements
Inherited Members

Constructors

M2LightDetail()

public M2LightDetail()

M2LightDetail(ushort, ushort, ushort, ushort, uint)

public M2LightDetail(ushort flags, ushort scaleHalf, ushort diffuseColorMultHalf, ushort unknown0, uint unknown1)

Parameters

flags ushort
scaleHalf ushort
diffuseColorMultHalf ushort
unknown0 ushort
unknown1 uint

M2LightDetail(M2LightDetail)

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

public M2LightDetail(M2LightDetail other)

Parameters

other M2LightDetail

Properties

DiffuseColorMultHalf

Multiplier for the light's diffuse color (raw half-float).

public ushort DiffuseColorMultHalf { get; set; }

Property Value

ushort

Flags

Unknown per-light flags.

public ushort Flags { get; set; }

Property Value

ushort

ScaleHalf

Scale for the shadow RT matrix (raw half-float).

public ushort ScaleHalf { get; set; }

Property Value

ushort

Unknown0

Unknown.

public ushort Unknown0 { get; set; }

Property Value

ushort

Unknown1

Unknown.

public uint Unknown1 { 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 ==(M2LightDetail?, M2LightDetail?)

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

Parameters

l M2LightDetail
r M2LightDetail

Returns

bool

operator !=(M2LightDetail?, M2LightDetail?)

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

Parameters

l M2LightDetail
r M2LightDetail

Returns

bool