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

MCSE codec: typed emitter records — the era picks the entry (pre-WotLK 52-byte CWSoundEmitterVanilla, 28-byte CWSoundEmitter after; the member's value_type carries the choice). 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 &self, FileBuffer &out, const MapChunkWriteCtx &)
template<typename Chunk>
static bool engaged (const Chunk &self, const MapChunkWriteCtx &)

Detailed Description

MCSE codec: typed emitter records — the era picks the entry (pre-WotLK 52-byte CWSoundEmitterVanilla, 28-byte CWSoundEmitter after; the member's value_type carries the choice).

A payload that is not a whole number of entries is preserved verbatim in mcseRaw.

Definition at line 306 of file map_chunk.hpp.

Member Function Documentation

◆ engaged()

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

Definition at line 329 of file map_chunk.hpp.

◆ read()

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

Definition at line 308 of file map_chunk.hpp.

◆ write()

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

Definition at line 319 of file map_chunk.hpp.

References wowlib::formats::adt::detail::appendBytes().


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