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

All liquid of one terrain cell: the attribute masks plus its layers. More...

#include <wowlib/formats/adt/liquid.hpp>

Public Member Functions

bool operator== (const MapChunkLiquid &) const =default
bool empty () const
 Whether the chunk carries any liquid.

Public Attributes

std::uint64_t fishable = 0
 The 8x8 fishable bit mask (visibility); 0 when the cell omits attributes.
std::uint64_t deep = 0
 The 8x8 deep bit mask (fatigue water); 0 when the cell omits attributes.
bool hasAttributes = false
 Whether this cell wrote an explicit attributes block (so an all-zero mask round-trips as present rather than omitted).
std::vector< LiquidInstance > instances
 The stacked liquid layers over this chunk.

Detailed Description

All liquid of one terrain cell: the attribute masks plus its layers.

Definition at line 89 of file liquid.hpp.

Member Function Documentation

◆ empty()

bool wowlib::formats::adt::MapChunkLiquid::empty ( ) const
inlinenodiscard

Whether the chunk carries any liquid.

Returns
whether the chunk carries any liquid.

Definition at line 107 of file liquid.hpp.

References instances.

◆ operator==()

bool wowlib::formats::adt::MapChunkLiquid::operator== ( const MapChunkLiquid & ) const
default

Member Data Documentation

◆ deep

std::uint64_t wowlib::formats::adt::MapChunkLiquid::deep = 0

The 8x8 deep bit mask (fatigue water); 0 when the cell omits attributes.

Definition at line 94 of file liquid.hpp.

Referenced by wowlib::formats::adt::MH2OData::read(), and wowlib::formats::adt::MH2OData::write().

◆ fishable

std::uint64_t wowlib::formats::adt::MapChunkLiquid::fishable = 0

The 8x8 fishable bit mask (visibility); 0 when the cell omits attributes.

Definition at line 91 of file liquid.hpp.

Referenced by wowlib::formats::adt::MH2OData::read(), and wowlib::formats::adt::MH2OData::write().

◆ hasAttributes

bool wowlib::formats::adt::MapChunkLiquid::hasAttributes = false

Whether this cell wrote an explicit attributes block (so an all-zero mask round-trips as present rather than omitted).

Definition at line 97 of file liquid.hpp.

Referenced by wowlib::formats::adt::MH2OData::read(), and wowlib::formats::adt::MH2OData::write().

◆ instances

std::vector<LiquidInstance> wowlib::formats::adt::MapChunkLiquid::instances

The stacked liquid layers over this chunk.

Definition at line 100 of file liquid.hpp.

Referenced by empty(), wowlib::formats::adt::MH2OData::empty(), wowlib::formats::adt::MH2OData::read(), and wowlib::formats::adt::MH2OData::write().


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