|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
A WDT main file for one client version. More...
#include <wowlib/formats/wdt/root/root.hpp>
Public Member Functions | |
| void | validateExtra (ValidationReport &report) const |
| Validation hook (see formats::detail::validateValue): the map-wide tables the client indexes POSITIONALLY, so their size is the contract — the 64x64 MAIN grid and, when engaged, the matching MAID grid — plus the global-WMO records a WMO-only map is limited to. | |
| Public Member Functions inherited from wowlib::formats::ChunkedFile< WDTRoot< 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 |
Public Attributes | |
| std::uint32_t | mver = WdtVersion18 |
| The WDT format version; 18 for every supported client. | |
| SMMapHeader< V > | header {} |
| The map header (MPHD): flags and, since 8.1, the satellite FileDataIDs. | |
| std::vector< SMAreaInfo > | tiles |
| StringBlock | globalWmoName |
| std::vector< SMMapObjDef > | globalWmo |
| 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). | |
A WDT main file for one client version.
The main file holds the map-wide header (MPHD), the 64x64 tile table (MAIN) saying which tiles have terrain, since 8.1 the per-tile FileDataID table (MAID), and — for WMO-only maps — the single global map object (MWMO/MODF). Version-gated chunks are inherited from the detail:: trait bases active for V. Instantiate through the canonicalizing wdt::root::WDTRoot alias, never directly.
| V | the client version this layout targets. |
|
inline |
Validation hook (see formats::detail::validateValue): the map-wide tables the client indexes POSITIONALLY, so their size is the contract — the 64x64 MAIN grid and, when engaged, the matching MAID grid — plus the global-WMO records a WMO-only map is limited to.
| report | the report findings land in. |
|
staticconstexpr |
The canonical chunk-stream order the serializer emits a fresh entity in (see writeOrder).
Lists every chunk member exactly once.
MAI2 (12.0.5+, Midnight) postdates the supported client range; it and any other unmodeled chunk round-trip through ChunkExtras::unknown.
| std::vector<SMMapObjDef> wowlib::formats::wdt::root::detail::WDTRoot< V >::globalWmo |
| StringBlock wowlib::formats::wdt::root::detail::WDTRoot< V >::globalWmoName |
| SMMapHeader<V> wowlib::formats::wdt::root::detail::WDTRoot< V >::header {} |
| std::uint32_t wowlib::formats::wdt::root::detail::WDTRoot< V >::mver = WdtVersion18 |
| std::vector<SMAreaInfo> wowlib::formats::wdt::root::detail::WDTRoot< V >::tiles |
|
staticconstexpr |