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