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

A _occ.wdt occlusion satellite for one client version (WoD+): the MAOI tile index and the packed MAOH heightmap block. More...

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

Inheritance diagram for wowlib::formats::wdt::occlusion::detail::WDTOcclusion< V >:

Public Attributes

std::uint32_t mver = WdtVersion18
 The file format version; 18 like the main WDT.
std::vector< OcclusionIndex > indices
std::vector< std::int16_t > heights
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

Additional Inherited Members

Public Member Functions inherited from wowlib::formats::ChunkedFile< WDTOcclusion< 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::occlusion::detail::WDTOcclusion< V >

A _occ.wdt occlusion satellite for one client version (WoD+): the MAOI tile index and the packed MAOH heightmap block.

Both chunks are present but empty for WMO-only maps. Instantiate through the canonicalizing wdt::occlusion::WDTOcclusion alias, never directly.

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

Definition at line 38 of file occlusion.hpp.

Member Data Documentation

◆ heights

template<ClientVersion V>
std::vector<std::int16_t> wowlib::formats::wdt::occlusion::detail::WDTOcclusion< V >::heights

Definition at line 49 of file occlusion.hpp.

◆ indices

Definition at line 46 of file occlusion.hpp.

◆ mver

The file format version; 18 like the main WDT.

Definition at line 43 of file occlusion.hpp.

◆ Version

Definition at line 39 of file occlusion.hpp.


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