wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::formats::wdt::lights::detail::WDTLights< V > Struct Template Reference

A _lgt.wdt lights satellite for one client version (WoD+): the map's freely placed lights. More...

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

Inheritance diagram for wowlib::formats::wdt::lights::detail::WDTLights< V >:

Public Attributes

std::uint32_t mver = V >= builds::Legion_Alpha_20914 ? 20 : WdtVersion18
 The file format version: 18 up to Legion 7.0.1.20740, 20 since 7.0.1.20914.
Public Attributes inherited from wowlib::formats::ChunkExtras
std::vector< JournalEntry > journal
std::vector< UnknownChunk > unknown
std::vector< std::byte > trailing

Static Public Attributes

static constexpr ClientVersion Version = V
static constexpr std::array ChunkOrder
 The canonical chunk-stream order the serializer emits a fresh entity in (see writeOrder).

Additional Inherited Members

Public Member Functions inherited from wowlib::formats::ChunkedFile< WDTLights< V > >
Result< void > read (std::span< const std::byte > data)
 Deserialize file bytes into this entity, replacing its contents.
Result< FileBuffer > write () const
 Serialize this entity.
ValidationReport validate () const
Result< void > ensureValid () const
 Validate and raise on the first error instead of returning a report — the assert-style face of validate().
bool operator== (const ChunkedFile &) const=default
Public Member Functions inherited from wowlib::formats::ChunkExtras
bool operator== (const ChunkExtras &) const =default

Detailed Description

template<ClientVersion V>
struct wowlib::formats::wdt::lights::detail::WDTLights< V >

A _lgt.wdt lights satellite for one client version (WoD+): the map's freely placed lights.

WMO-only maps ship the file with just its MVER. Instantiate through the canonicalizing wdt::lights::WDTLights alias, never directly.

Template Parameters
Vthe client version this layout targets.
See also
https://wowdev.wiki/WDT#lgt

Definition at line 80 of file lights.hpp.

Member Data Documentation

◆ ChunkOrder

template<ClientVersion V>
std::array wowlib::formats::wdt::lights::detail::WDTLights< V >::ChunkOrder
staticconstexpr
Initial value:
= {
fourcc("MVER"),
fourcc("MPLT"),
fourcc("MPL2"),
fourcc("MPL3"),
fourcc("MSLT"),
fourcc("MTEX"),
fourcc("MLTA"),
}
constexpr std::uint32_t fourcc(const char(&cc)[5], FourCCEndian endian=FourCCEndian::Reversed)
The host integer a scanned chunk id compares equal to for code cc.
Definition fourcc.hpp:33

The canonical chunk-stream order the serializer emits a fresh entity in (see writeOrder).

Lists every chunk member exactly once.

Definition at line 94 of file lights.hpp.

◆ mver

The file format version: 18 up to Legion 7.0.1.20740, 20 since 7.0.1.20914.

Definition at line 90 of file lights.hpp.

◆ Version

template<ClientVersion V>
ClientVersion wowlib::formats::wdt::lights::detail::WDTLights< V >::Version = V
staticconstexpr

Definition at line 86 of file lights.hpp.


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