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

The satellite-file naming conventions around one model path: every companion file of "creature\\x\\x.m2" derives from the same stem. More...

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

Public Member Functions

 SatellitePaths (std::string_view modelPath)
const std::string & stem () const
 The model path without its extension.
std::string skin (std::uint32_t index) const
 "{stem}0N.skin" — the numbered view naming convention.
std::string lodSkin (std::uint32_t band) const
 "{stem}_lod0N.skin" — LOD bands number from 1.
std::string anim (SequenceKey key) const
 "{stem}AAAA-SS.anim" — the external-sequence naming.
std::string bone (std::uint32_t variant) const
 "{stem}_NN.bone" — one per FacePose variant.
std::string skel () const
 "{stem}.skel".
std::string phys () const
 "{stem}.phys".

Detailed Description

The satellite-file naming conventions around one model path: every companion file of "creature\\x\\x.m2" derives from the same stem.

Definition at line 51 of file satellites.hpp.

Constructor & Destructor Documentation

◆ SatellitePaths()

wowlib::formats::m2::SatellitePaths::SatellitePaths ( std::string_view modelPath)
inlineexplicit
Parameters
modelPaththe model's resolved client path; a known model extension (.m2, .mdx/.mdl in old references, .skel for skeletons) is stripped, the remainder is the stem.

Definition at line 56 of file satellites.hpp.

Member Function Documentation

◆ anim()

std::string wowlib::formats::m2::SatellitePaths::anim ( SequenceKey key) const
inline

"{stem}AAAA-SS.anim" — the external-sequence naming.

Definition at line 79 of file satellites.hpp.

References wowlib::formats::m2::SequenceKey::id, and wowlib::formats::m2::SequenceKey::variation.

Referenced by wowlib::formats::m2::detail::Skeleton< V >::write().

◆ bone()

std::string wowlib::formats::m2::SatellitePaths::bone ( std::uint32_t variant) const
inline

"{stem}_NN.bone" — one per FacePose variant.

Definition at line 84 of file satellites.hpp.

◆ lodSkin()

std::string wowlib::formats::m2::SatellitePaths::lodSkin ( std::uint32_t band) const
inline

"{stem}_lod0N.skin" — LOD bands number from 1.

Definition at line 74 of file satellites.hpp.

◆ phys()

std::string wowlib::formats::m2::SatellitePaths::phys ( ) const
inline

"{stem}.phys".

Definition at line 92 of file satellites.hpp.

◆ skel()

std::string wowlib::formats::m2::SatellitePaths::skel ( ) const
inline

"{stem}.skel".

Definition at line 89 of file satellites.hpp.

◆ skin()

std::string wowlib::formats::m2::SatellitePaths::skin ( std::uint32_t index) const
inline

"{stem}0N.skin" — the numbered view naming convention.

Definition at line 69 of file satellites.hpp.

◆ stem()

const std::string & wowlib::formats::m2::SatellitePaths::stem ( ) const
inline

The model path without its extension.

Definition at line 66 of file satellites.hpp.


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