Table of Contents

Class M2LightVanillaToTbc

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

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

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

Constructors

M2LightVanillaToTbc()

public M2LightVanillaToTbc()

M2LightVanillaToTbc(M2LightVanillaToTbc)

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

public M2LightVanillaToTbc(M2LightVanillaToTbc other)

Parameters

other M2LightVanillaToTbc

Properties

AmbientColor

RGB ambient color (no alpha).

public M2TrackC3VectorVanillaToTbc AmbientColor { get; set; }

Property Value

M2TrackC3VectorVanillaToTbc

AmbientIntensity

Multiplies the ambient color; defaults to 1.0.

public M2TrackFloatVanillaToTbc AmbientIntensity { get; set; }

Property Value

M2TrackFloatVanillaToTbc

AttenuationEnd

Distance where the light fades out entirely.

public M2TrackFloatVanillaToTbc AttenuationEnd { get; set; }

Property Value

M2TrackFloatVanillaToTbc

AttenuationStart

Distance where attenuation begins.

public M2TrackFloatVanillaToTbc AttenuationStart { get; set; }

Property Value

M2TrackFloatVanillaToTbc

Bone

Bone to attach to, -1 for none.

public short Bone { get; set; }

Property Value

short

DiffuseColor

RGB diffuse color (no alpha).

public M2TrackC3VectorVanillaToTbc DiffuseColor { get; set; }

Property Value

M2TrackC3VectorVanillaToTbc

DiffuseIntensity

Multiplies the diffuse color; defaults to 1.0.

public M2TrackFloatVanillaToTbc DiffuseIntensity { get; set; }

Property Value

M2TrackFloatVanillaToTbc

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 M2TrackUInt8VanillaToTbc Visibility { get; set; }

Property Value

M2TrackUInt8VanillaToTbc

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

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

Parameters

l M2LightVanillaToTbc
r M2LightVanillaToTbc

Returns

bool

operator !=(M2LightVanillaToTbc?, M2LightVanillaToTbc?)

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

Parameters

l M2LightVanillaToTbc
r M2LightVanillaToTbc

Returns

bool