wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
records.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <cstdint>
7
8#include <welder/vocabulary.hpp>
9
11 struct [[
12 =welder::weld,
13 =welder::doc(R"(
14 One MAOI record: which tile the next occlusion heightmap belongs to
15 and where its 545 int16 values sit inside the MAOH payload.)")
17 [[=welder::doc("The tile x coordinate.")]]
18 std::uint16_t tileX = 0;
20 [[=welder::doc("The tile y coordinate.")]]
21 std::uint16_t tileY = 0;
23 [[=welder::doc(
24 "Byte offset of this tile's heightmap inside the MAOH payload. "
25 "Stored as-is: MAOH round-trips verbatim, so offsets stay "
26 "valid; keep them consistent when editing.")]]
27 std::uint32_t offset = 0;
28
29 [[=welder::doc(
30 "Byte size of the heightmap; always (17*17 + 16*16) * 2 = 1090.")]]
31 std::uint32_t size = 0;
32 };
33
34 static_assert(sizeof(OcclusionIndex) == 12);
35}
_occ.wdt chunk binary structs (the MAOI tile index).
Definition records.hpp:10
std::uint32_t size
Byte size of the heightmap; always (17*17 + 16*16) * 2 = 1090.
Definition records.hpp:22
std::uint16_t tileY
The tile y coordinate.
Definition records.hpp:16
std::uint32_t offset
Byte offset of this tile's heightmap inside the MAOH payload.
Definition records.hpp:19
std::uint16_t tileX
The tile x coordinate.
Definition records.hpp:13