wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::formats::adt::chunks::SLVert Struct Reference

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.

Detailed Description

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.

Member Function Documentation

◆ asMagma()

SMVert wowlib::formats::adt::chunks::SLVert::asMagma ( ) const
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.

Member Data Documentation

◆ depth

std::uint8_t wowlib::formats::adt::chunks::SLVert::depth = 0

Water: depth.

Ocean: depth. Magma/slime: low byte of s.

Definition at line 62 of file liquid.hpp.

◆ filler

std::uint8_t wowlib::formats::adt::chunks::SLVert::filler = 0

Filler.

Magma/slime: high byte of t.

Definition at line 68 of file liquid.hpp.

◆ flow0

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.

◆ flow1

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.

◆ height

float wowlib::formats::adt::chunks::SLVert::height = 0

Liquid surface height at this vertex.

Definition at line 70 of file liquid.hpp.


The documentation for this struct was generated from the following file: