Class MapSpotLight
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
iduintcolorCImVectorpositionC3VectorattenuationStartfloatattenuationEndfloatintensityfloatrotationC3VectorspotlightRadiusfloatinnerAnglefloatouterAnglefloattileXushorttileYushortmltaIndexshorttextureIndexshort
MapSpotLight(MapSpotLight)
Copy-construct: a deep copy of other (the C++ copy constructor).
public MapSpotLight(MapSpotLight other)
Parameters
otherMapSpotLight
Properties
AttenuationEnd
How far the light spreads.
public float AttenuationEnd { get; set; }
Property Value
AttenuationStart
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.
public uint Id { get; set; }
Property Value
InnerAngle
Inner cone angle, radians.
public float InnerAngle { 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
OuterAngle
Outer cone angle, radians.
public float OuterAngle { get; set; }
Property Value
Position
Light position.
public C3Vector Position { get; set; }
Property Value
Rotation
Rotation, radians.
public C3Vector Rotation { get; set; }
Property Value
SpotlightRadius
Spotlight cone radius.
public float SpotlightRadius { 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()