Table of Contents

Class MapPointLight

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

One Legion point light (MPL2).

public class MapPointLight : IDisposable
Inheritance
MapPointLight
Implements
Inherited Members

Constructors

MapPointLight()

public MapPointLight()

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

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

Parameters

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

MapPointLight(MapPointLight)

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

public MapPointLight(MapPointLight other)

Parameters

other MapPointLight

Properties

AttenuationEnd

How far the light spreads.

public float AttenuationEnd { get; set; }

Property Value

float

AttenuationStart

Where the light's spread starts; usually 0.

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; increment for each new light.

public uint Id { get; set; }

Property Value

uint

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

Position

Light position.

public C3Vector Position { get; set; }

Property Value

C3Vector

Rotation

Rotation; usually zero for point lights.

public C3Vector Rotation { get; set; }

Property Value

C3Vector

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