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

MCLY codec: the texture layers, plus sizing alphaMaps to the layer count (MCAL may be absent on Cata+ when empty, so alphaMaps must be sized here to keep it aligned with layers). 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 &)
template<typename Chunk>
static void write (const Chunk &, FileBuffer &out, const MapChunkWriteCtx &ctx)
template<typename Chunk>
static bool engaged (const Chunk &self, const MapChunkWriteCtx &)

Detailed Description

MCLY codec: the texture layers, plus sizing alphaMaps to the layer count (MCAL may be absent on Cata+ when empty, so alphaMaps must be sized here to keep it aligned with layers).

Definition at line 210 of file map_chunk.hpp.

Member Function Documentation

◆ engaged()

template<typename Chunk>
bool wowlib::formats::adt::detail::LayerCodec::engaged ( const Chunk & self,
const MapChunkWriteCtx &  )
inlinestatic

Definition at line 225 of file map_chunk.hpp.

◆ read()

template<typename Chunk>
Result< void > wowlib::formats::adt::detail::LayerCodec::read ( Chunk & self,
std::span< const std::byte > sub,
const MapChunkReadCtx &  )
inlinestatic

Definition at line 212 of file map_chunk.hpp.

◆ write()

template<typename Chunk>
void wowlib::formats::adt::detail::LayerCodec::write ( const Chunk & ,
FileBuffer & out,
const MapChunkWriteCtx & ctx )
inlinestatic

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