Table of Contents

Class M2LightWotlkPlus

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

A model light: type 0 directional (login screens only), 1 point.

public class M2LightWotlkPlus : M2Light, IDisposable
Inheritance
M2LightWotlkPlus
Implements
Inherited Members

Constructors

M2LightWotlkPlus()

public M2LightWotlkPlus()

M2LightWotlkPlus(M2LightWotlkPlus)

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

public M2LightWotlkPlus(M2LightWotlkPlus other)

Parameters

other M2LightWotlkPlus

Properties

AmbientColor

RGB ambient color (no alpha).

public M2TrackC3VectorWotlkPlus AmbientColor { get; set; }

Property Value

M2TrackC3VectorWotlkPlus

AmbientIntensity

Multiplies the ambient color; defaults to 1.0.

public M2TrackFloatWotlkPlus AmbientIntensity { get; set; }

Property Value

M2TrackFloatWotlkPlus

AttenuationEnd

Distance where the light fades out entirely.

public M2TrackFloatWotlkPlus AttenuationEnd { get; set; }

Property Value

M2TrackFloatWotlkPlus

AttenuationStart

Distance where attenuation begins.

public M2TrackFloatWotlkPlus AttenuationStart { get; set; }

Property Value

M2TrackFloatWotlkPlus

Bone

Bone to attach to, -1 for none.

public short Bone { get; set; }

Property Value

short

DiffuseColor

RGB diffuse color (no alpha).

public M2TrackC3VectorWotlkPlus DiffuseColor { get; set; }

Property Value

M2TrackC3VectorWotlkPlus

DiffuseIntensity

Multiplies the diffuse color; defaults to 1.0.

public M2TrackFloatWotlkPlus DiffuseIntensity { get; set; }

Property Value

M2TrackFloatWotlkPlus

Position

Relative to the bone, if any.

public C3Vector Position { get; set; }

Property Value

C3Vector

Type

0 directional, 1 point.

public ushort Type { get; set; }

Property Value

ushort

Visibility

Bool track: the light is enabled.

public M2TrackUInt8WotlkPlus Visibility { get; set; }

Property Value

M2TrackUInt8WotlkPlus

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 override void Dispose()

Operators

operator ==(M2LightWotlkPlus?, M2LightWotlkPlus?)

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

Parameters

l M2LightWotlkPlus
r M2LightWotlkPlus

Returns

bool

operator !=(M2LightWotlkPlus?, M2LightWotlkPlus?)

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

Parameters

l M2LightWotlkPlus
r M2LightWotlkPlus

Returns

bool