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

One .bone file: which bones get facial-pose offset matrices, and the matrices. More...

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

Inheritance diagram for wowlib::formats::m2::BoneFile:

Public Member Functions

bool operator== (const BoneFile &) const=default
Public Member Functions inherited from wowlib::formats::ChunkedFile< BoneFile >
Result< void > read (std::span< const std::byte > data)
 Deserialize file bytes into this entity, replacing its contents.
Result< FileBuffer > write () const
 Serialize this entity.
ValidationReport validate () const
Result< void > ensureValid () const
 Validate and raise on the first error instead of returning a report — the assert-style face of validate().
bool operator== (const ChunkedFile &) const=default
Public Member Functions inherited from wowlib::formats::ChunkExtras
bool operator== (const ChunkExtras &) const =default

Public Attributes

BoneFilePrelude prelude {}
 The raw u32 prelude (version marker).
std::vector< std::uint16_t > boneIds
 The affected bone ids (BIDA).
std::vector< C44Matrix > boneOffsetMatrices
 The per-bone offset matrices (BOMT), same count as bone_ids.
Public Attributes inherited from wowlib::formats::ChunkExtras
std::vector< JournalEntry > journal
std::vector< UnknownChunk > unknown
std::vector< std::byte > trailing

Static Public Attributes

static constexpr ClientVersion Version = versions::Wod
static constexpr FourCCEndian UnknownFourccEndian = FourCCEndian::Forward

Detailed Description

One .bone file: which bones get facial-pose offset matrices, and the matrices.

The layout is stable across every client that ships them, so the entity is not version-templated (the version constant satisfies the chunk framework; no chunk here is version-gated).

See also
https://wowdev.wiki/BONE

Definition at line 34 of file bone.hpp.

Member Function Documentation

◆ operator==()

bool wowlib::formats::m2::bone::BoneFile::operator== ( const BoneFile & ) const
default

Member Data Documentation

◆ boneIds

The affected bone ids (BIDA).

Definition at line 44 of file bone.hpp.

◆ boneOffsetMatrices

The per-bone offset matrices (BOMT), same count as bone_ids.

Definition at line 48 of file bone.hpp.

◆ prelude

The raw u32 prelude (version marker).

Definition at line 40 of file bone.hpp.

◆ UnknownFourccEndian

◆ Version


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