Class M2LightDetail
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
M2LightDetail(M2LightDetail)
Copy-construct: a deep copy of other (the C++ copy constructor).
public M2LightDetail(M2LightDetail other)
Parameters
otherM2LightDetail
Properties
DiffuseColorMultHalf
Multiplier for the light's diffuse color (raw half-float).
public ushort DiffuseColorMultHalf { get; set; }
Property Value
Flags
Unknown per-light flags.
public ushort Flags { get; set; }
Property Value
ScaleHalf
Scale for the shadow RT matrix (raw half-float).
public ushort ScaleHalf { get; set; }
Property Value
Unknown0
Unknown.
public ushort Unknown0 { get; set; }
Property Value
Unknown1
Unknown.
public uint 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 ==(M2LightDetail?, M2LightDetail?)
public static bool operator ==(M2LightDetail? l, M2LightDetail? r)
Parameters
Returns
operator !=(M2LightDetail?, M2LightDetail?)
public static bool operator !=(M2LightDetail? l, M2LightDetail? r)