wowlib
0.0.0
Read & write World of Warcraft client files — a C++26 core
Toggle main menu visibility
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
10
namespace
wowlib::formats::wdt::occlusion::chunks
{
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.)")
16
]]
OcclusionIndex
{
17
[[=welder::doc(
"The tile x coordinate."
)]]
18
std::uint16_t
tileX
= 0;
19
20
[[=welder::doc(
"The tile y coordinate."
)]]
21
std::uint16_t
tileY
= 0;
22
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
}
wowlib::formats::wdt::occlusion::chunks
_occ.wdt chunk binary structs (the MAOI tile index).
Definition
records.hpp:10
wowlib::formats::wdt::occlusion::chunks::OcclusionIndex
Definition
records.hpp:11
wowlib::formats::wdt::occlusion::chunks::OcclusionIndex::size
std::uint32_t size
Byte size of the heightmap; always (17*17 + 16*16) * 2 = 1090.
Definition
records.hpp:22
wowlib::formats::wdt::occlusion::chunks::OcclusionIndex::tileY
std::uint16_t tileY
The tile y coordinate.
Definition
records.hpp:16
wowlib::formats::wdt::occlusion::chunks::OcclusionIndex::offset
std::uint32_t offset
Byte offset of this tile's heightmap inside the MAOH payload.
Definition
records.hpp:19
wowlib::formats::wdt::occlusion::chunks::OcclusionIndex::tileX
std::uint16_t tileX
The tile x coordinate.
Definition
records.hpp:13
src
wowlib
formats
wdt
occlusion
chunks
records.hpp
Generated by
1.17.0