|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
MCAL codec: decode/encode the per-layer 64x64 alpha maps through AlphaMapCodec, indexing the sibling layers' flags + offsetInMcal. More...
#include <wowlib/formats/adt/map_chunk.hpp>
Static Public Member Functions | |
| template<typename Chunk> | |
| static Result< void > | read (Chunk &self, std::span< const std::byte > sub, const MapChunkReadCtx &ctx) |
| template<typename Chunk> | |
| static void | prepare (const Chunk &self, AlphaFormat af, std::vector< std::byte > &blob, std::vector< SMLayer > &stamped) |
| Build the MCAL blob and the layers copy carrying each layer's derived offsetInMcal (MCLY emits that copy). | |
| template<typename Chunk> | |
| static void | write (const Chunk &, FileBuffer &out, const MapChunkWriteCtx &ctx) |
| template<typename Chunk> | |
| static bool | engaged (const Chunk &, const MapChunkWriteCtx &ctx) |
MCAL codec: decode/encode the per-layer 64x64 alpha maps through AlphaMapCodec, indexing the sibling layers' flags + offsetInMcal.
Definition at line 232 of file map_chunk.hpp.
|
inlinestatic |
Definition at line 274 of file map_chunk.hpp.
References wowlib::formats::adt::detail::MapChunkWriteCtx::alphaBlob.
|
inlinestatic |
Build the MCAL blob and the layers copy carrying each layer's derived offsetInMcal (MCLY emits that copy).
Called once before the write walk.
| self | the chunk. |
| af | the tile alpha bit depth. |
| blob | receives the encoded MCAL bytes. |
| stamped | receives the layers with offsetInMcal stamped. |
Definition at line 253 of file map_chunk.hpp.
References wowlib::formats::adt::chunks::AlphaMapCompressed, wowlib::formats::adt::detail::AlphaMapCodec::encode(), wowlib::formats::hasFlag(), and wowlib::formats::adt::chunks::UseAlphaMap.
Referenced by wowlib::formats::adt::detail::MapChunk< V >::writeTo().
|
inlinestatic |
Definition at line 234 of file map_chunk.hpp.
References wowlib::formats::adt::detail::MapChunkReadCtx::af, wowlib::formats::adt::chunks::AlphaMapCompressed, wowlib::formats::adt::detail::AlphaMapCodec::decode(), wowlib::formats::adt::detail::MapChunkReadCtx::fix, wowlib::formats::hasFlag(), and wowlib::formats::adt::chunks::UseAlphaMap.
|
inlinestatic |
Definition at line 269 of file map_chunk.hpp.
References wowlib::formats::adt::detail::MapChunkWriteCtx::alphaBlob, and wowlib::formats::adt::detail::appendBytes().