|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
One legacy liquid vertex (MCLQ, 8 bytes). More...
#include <wowlib/formats/adt/chunks/liquid.hpp>
Public Member Functions | |
| SMVert | asMagma () const |
| Reinterpret this vertex under the magma/slime reading (u16 s, t). | |
Public Attributes | |
| std::uint8_t | depth = 0 |
| Water: depth. | |
| std::uint8_t | flow0 = 0 |
| Water: flow0 percent. | |
| std::uint8_t | flow1 = 0 |
| Water: flow1 percent. | |
| std::uint8_t | filler = 0 |
| Filler. | |
| float | height = 0 |
| Liquid surface height at this vertex. | |
One legacy liquid vertex (MCLQ, 8 bytes).
Byte layout fixed; the reading (water/ocean flow bytes vs magma/slime u16 texcoords) is set by the cell's liquid-type flags, not stored per vertex.
Definition at line 60 of file liquid.hpp.
|
inlinenodiscard |
Reinterpret this vertex under the magma/slime reading (u16 s, t).
A pure byte reinterpretation; use it only for magma/slime cells.
Definition at line 74 of file liquid.hpp.
| std::uint8_t wowlib::formats::adt::chunks::SLVert::depth = 0 |
| std::uint8_t wowlib::formats::adt::chunks::SLVert::filler = 0 |
| std::uint8_t wowlib::formats::adt::chunks::SLVert::flow0 = 0 |
Water: flow0 percent.
Ocean: foam. Magma/slime: high byte of s.
Definition at line 64 of file liquid.hpp.
| std::uint8_t wowlib::formats::adt::chunks::SLVert::flow1 = 0 |
Water: flow1 percent.
Ocean: wet. Magma/slime: low byte of t.
Definition at line 66 of file liquid.hpp.
| float wowlib::formats::adt::chunks::SLVert::height = 0 |
Liquid surface height at this vertex.
Definition at line 70 of file liquid.hpp.