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 <array>
7
#include <cstdint>
8
9
#include <welder/vocabulary.hpp>
10
11
#include <
wowlib/formats/common/types.hpp
>
12
13
namespace
wowlib::formats::wdt::mpv::chunks
{
14
struct
[[
15
=welder::weld,
16
=welder::doc(
"One PVPD particulate-volume point."
)
17
]]
ParticulatePoint
{
18
[[=welder::doc(
"Unknown 2D vector; components in [-1, 1]."
)]]
19
C2Vector
unk0
{};
20
21
[[=welder::doc(
"Unknown; only -0.0 observed."
)]]
22
float
unk8
= 0;
23
24
[[=welder::doc(
"Unknown."
)]]
25
float
unkC
= 0;
26
};
27
28
static_assert
(
sizeof
(
ParticulatePoint
) == 16);
29
30
struct
[[
31
=welder::weld,
32
=welder::doc(
"One PVBD particulate-volume bounds record."
)
33
]]
ParticulateBounds
{
34
[[=welder::doc(
"Number of engaged point indices."
)]]
35
std::uint32_t
pointCount
= 0;
36
37
[[=welder::doc(
"The volume's bounds."
)]]
38
CAaBox
bounds
{};
39
40
[[=welder::doc(
"Indices into the group's PVPD points."
)]]
41
std::array<std::uint32_t, 8>
pointIndices
{};
42
43
[[=welder::doc(
44
"Whether this entry is complete; if 0 it joins the next entry "
45
"(same bounds)."
)]]
46
std::uint32_t complete = 1;
47
};
48
49
static_assert
(
sizeof
(
ParticulateBounds
) == 0x40);
50
}
wowlib::formats::wdt::mpv::chunks
_mpv.wdt chunk binary structs (particulate points and bounds).
Definition
records.hpp:13
wowlib::formats::common::C2Vector
A 2D float vector: texture coordinates, UV animation speeds.
Definition
types.hpp:29
wowlib::formats::common::CAaBox
An axis-aligned bounding box: minimum and maximum corners.
Definition
types.hpp:134
wowlib::formats::wdt::mpv::chunks::ParticulateBounds
One PVBD particulate-volume bounds record.
Definition
records.hpp:29
wowlib::formats::wdt::mpv::chunks::ParticulateBounds::pointIndices
std::array< std::uint32_t, 8 > pointIndices
Indices into the group's PVPD points.
Definition
records.hpp:37
wowlib::formats::wdt::mpv::chunks::ParticulateBounds::bounds
CAaBox bounds
The volume's bounds.
Definition
records.hpp:34
wowlib::formats::wdt::mpv::chunks::ParticulateBounds::complete
std::uint32_t complete
Whether this entry is complete; if 0 it joins the next entry (same bounds).
Definition
records.hpp:40
wowlib::formats::wdt::mpv::chunks::ParticulateBounds::pointCount
std::uint32_t pointCount
Number of engaged point indices.
Definition
records.hpp:31
wowlib::formats::wdt::mpv::chunks::ParticulatePoint
One PVPD particulate-volume point.
Definition
records.hpp:15
wowlib::formats::wdt::mpv::chunks::ParticulatePoint::unk8
float unk8
Unknown; only -0.0 observed.
Definition
records.hpp:20
wowlib::formats::wdt::mpv::chunks::ParticulatePoint::unk0
C2Vector unk0
Unknown 2D vector; components in [-1, 1].
Definition
records.hpp:17
wowlib::formats::wdt::mpv::chunks::ParticulatePoint::unkC
float unkC
Unknown.
Definition
records.hpp:23
types.hpp
The binary-level math and color primitives shared across WoW file formats (wowdev....
src
wowlib
formats
wdt
mpv
chunks
records.hpp
Generated by
1.17.0