Class MapPointLight
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
iduintcolorCImVectorpositionC3VectorattenuationStartfloatattenuationEndfloatintensityfloatrotationC3VectortileXushorttileYushortmltaIndexshorttextureIndexshort
MapPointLight(MapPointLight)
Copy-construct: a deep copy of other (the C++ copy constructor).
public MapPointLight(MapPointLight other)
Parameters
otherMapPointLight
Properties
AttenuationEnd
How far the light spreads.
public float AttenuationEnd { get; set; }
Property Value
AttenuationStart
Where the light's spread starts; usually 0.
public float AttenuationStart { get; set; }
Property Value
Color
Light color (b, g, r, a); alpha 0 means fully opaque.
public CImVector Color { get; set; }
Property Value
Id
Unique light id within the WDT; increment for each new light.
public uint Id { get; set; }
Property Value
Intensity
Light intensity.
public float Intensity { get; set; }
Property Value
MltaIndex
Index into MLTA, or -1 when unanimated.
public short MltaIndex { get; set; }
Property Value
Position
Light position.
public C3Vector Position { get; set; }
Property Value
Rotation
Rotation; usually zero for point lights.
public C3Vector Rotation { get; set; }
Property Value
TextureIndex
Index into MTEX, or -1.
public short TextureIndex { get; set; }
Property Value
TileX
The ADT tile x coordinate.
public ushort TileX { get; set; }
Property Value
TileY
The ADT tile y coordinate.
public ushort TileY { 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()