wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::formats::wdt::lights::chunks::MapPointLight Struct Reference

One Legion point light (MPL2). More...

#include <wowlib/formats/wdt/lights/chunks/records.hpp>

Public Attributes

std::uint32_t id = 0
 Unique light id within the WDT; increment for each new light.
CImVector color {}
 Light color (b, g, r, a); alpha 0 means fully opaque.
C3Vector position {}
 Light position.
float attenuationStart = 0
 Where the light's spread starts; usually 0.
float attenuationEnd = 0
 How far the light spreads.
float intensity = 0
 Light intensity.
C3Vector rotation {}
 Rotation; usually zero for point lights.
std::uint16_t tileX = 0
 The ADT tile x coordinate.
std::uint16_t tileY = 0
 The ADT tile y coordinate.
std::int16_t mltaIndex = -1
 Index into MLTA, or -1 when unanimated.
std::int16_t textureIndex = -1
 Index into MTEX, or -1.

Detailed Description

One Legion point light (MPL2).

Definition at line 41 of file records.hpp.

Member Data Documentation

◆ attenuationEnd

float wowlib::formats::wdt::lights::chunks::MapPointLight::attenuationEnd = 0

How far the light spreads.

Definition at line 55 of file records.hpp.

◆ attenuationStart

float wowlib::formats::wdt::lights::chunks::MapPointLight::attenuationStart = 0

Where the light's spread starts; usually 0.

Definition at line 52 of file records.hpp.

◆ color

CImVector wowlib::formats::wdt::lights::chunks::MapPointLight::color {}

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

Definition at line 46 of file records.hpp.

◆ id

std::uint32_t wowlib::formats::wdt::lights::chunks::MapPointLight::id = 0

Unique light id within the WDT; increment for each new light.

Definition at line 43 of file records.hpp.

◆ intensity

float wowlib::formats::wdt::lights::chunks::MapPointLight::intensity = 0

Light intensity.

Definition at line 58 of file records.hpp.

◆ mltaIndex

std::int16_t wowlib::formats::wdt::lights::chunks::MapPointLight::mltaIndex = -1

Index into MLTA, or -1 when unanimated.

Definition at line 70 of file records.hpp.

◆ position

C3Vector wowlib::formats::wdt::lights::chunks::MapPointLight::position {}

Light position.

Definition at line 49 of file records.hpp.

◆ rotation

C3Vector wowlib::formats::wdt::lights::chunks::MapPointLight::rotation {}

Rotation; usually zero for point lights.

Definition at line 61 of file records.hpp.

◆ textureIndex

std::int16_t wowlib::formats::wdt::lights::chunks::MapPointLight::textureIndex = -1

Index into MTEX, or -1.

Definition at line 73 of file records.hpp.

◆ tileX

std::uint16_t wowlib::formats::wdt::lights::chunks::MapPointLight::tileX = 0

The ADT tile x coordinate.

Definition at line 64 of file records.hpp.

◆ tileY

std::uint16_t wowlib::formats::wdt::lights::chunks::MapPointLight::tileY = 0

The ADT tile y coordinate.

Definition at line 67 of file records.hpp.


The documentation for this struct was generated from the following file: