|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
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. | |
All liquid of one terrain cell: the attribute masks plus its layers.
Definition at line 89 of file liquid.hpp.
|
inlinenodiscard |
Whether the chunk carries any liquid.
Definition at line 107 of file liquid.hpp.
References instances.
|
default |
| 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().
| 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().
| 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().
| 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().