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

Resolution of SequenceData members while writing: which buffer each outer element's nested data blocks are appended to (offsets recorded relative to that buffer). More...

#include <wowlib/formats/m2/offset_block.hpp>

Public Attributes

std::function< FileBuffer *(std::size_t i) > sequenceSink
 The destination buffer for outer element i's nested data — the .anim file buffer being assembled for an external M2 sequence, or nullptr for inline.

Detailed Description

Resolution of SequenceData members while writing: which buffer each outer element's nested data blocks are appended to (offsets recorded relative to that buffer).

Without a context (or a nullptr result) the data is written inline after the entity's own image.

Definition at line 86 of file offset_block.hpp.

Member Data Documentation

◆ sequenceSink

std::function<FileBuffer * (std::size_t i ) > wowlib::formats::m2::OffsetWriteContext::sequenceSink

The destination buffer for outer element i's nested data — the .anim file buffer being assembled for an external M2 sequence, or nullptr for inline.

Definition at line 93 of file offset_block.hpp.

Referenced by wowlib::formats::m2::M2OffsetBlock< Derived >::_writeArrayElements(), and wowlib::formats::m2::AnimBuffers::sink().


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