Table of Contents

Class MapSpotLight

Namespace
WoWLib.Formats.WDT.Lights.Chunks
Assembly
WoWLib.dll

One Legion spot light (MSLT).

public class MapSpotLight : IDisposable
Inheritance
MapSpotLight
Implements
Inherited Members

Constructors

MapSpotLight()

public MapSpotLight()

MapSpotLight(uint, CImVector, C3Vector, float, float, float, C3Vector, float, float, float, ushort, ushort, short, short)

public MapSpotLight(uint id, CImVector color, C3Vector position, float attenuationStart, float attenuationEnd, float intensity, C3Vector rotation, float spotlightRadius, float innerAngle, float outerAngle, ushort tileX, ushort tileY, short mltaIndex, short textureIndex)

Parameters

id uint
color CImVector
position C3Vector
attenuationStart float
attenuationEnd float
intensity float
rotation C3Vector
spotlightRadius float
innerAngle float
outerAngle float
tileX ushort
tileY ushort
mltaIndex short
textureIndex short

MapSpotLight(MapSpotLight)

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

public MapSpotLight(MapSpotLight other)

Parameters

other MapSpotLight

Properties

AttenuationEnd

How far the light spreads.

public float AttenuationEnd { get; set; }

Property Value

float

AttenuationStart

public float AttenuationStart { get; set; }

Property Value

float

Color

Light color (b, g, r, a); alpha 0 means fully opaque.

public CImVector Color { get; set; }

Property Value

CImVector

Id

Unique light id within the WDT.

public uint Id { get; set; }

Property Value

uint

InnerAngle

Inner cone angle, radians.

public float InnerAngle { get; set; }

Property Value

float

Intensity

Light intensity.

public float Intensity { get; set; }

Property Value

float

MltaIndex

Index into MLTA, or -1 when unanimated.

public short MltaIndex { get; set; }

Property Value

short

OuterAngle

Outer cone angle, radians.

public float OuterAngle { get; set; }

Property Value

float

Position

Light position.

public C3Vector Position { get; set; }

Property Value

C3Vector

Rotation

Rotation, radians.

public C3Vector Rotation { get; set; }

Property Value

C3Vector

SpotlightRadius

Spotlight cone radius.

public float SpotlightRadius { get; set; }

Property Value

float

TextureIndex

Index into MTEX, or -1.

public short TextureIndex { get; set; }

Property Value

short

TileX

The ADT tile x coordinate.

public ushort TileX { get; set; }

Property Value

ushort

TileY

The ADT tile y coordinate.

public ushort TileY { get; set; }

Property Value

ushort

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()