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

One MODD doodad placement: an M2 instance inside the WMO, quaternion-oriented in model space. More...

#include <wowlib/formats/wmo/root/chunks/doodad.hpp>

Public Member Functions

constexpr std::uint32_t nameIndex () const
 The 24-bit MODN byte offset (or MODI index) of the model name.

Public Attributes

std::uint32_t nameAndFlags = 0
 Packed 24-bit MODN offset / MODI index plus DoodadFlags bits in the high byte.
C3Vector position {}
 Position in WMO model space (Z-up).
C4Quaternion orientation {}
 Orientation quaternion.
float scale = 1
 Uniform scale factor.
CImVector color {}
 Color override (BGRA); alpha below 0xFF is a MOLT index.

Detailed Description

One MODD doodad placement: an M2 instance inside the WMO, quaternion-oriented in model space.

Definition at line 52 of file doodad.hpp.

Member Function Documentation

◆ nameIndex()

std::uint32_t wowlib::formats::wmo::root::chunks::SMODoodadDef::nameIndex ( ) const
inlinenodiscardconstexpr

The 24-bit MODN byte offset (or MODI index) of the model name.

Definition at line 70 of file doodad.hpp.

References nameAndFlags, and wowlib::formats::wmo::root::chunks::NameMask.

Member Data Documentation

◆ color

CImVector wowlib::formats::wmo::root::chunks::SMODoodadDef::color {}

Color override (BGRA); alpha below 0xFF is a MOLT index.

Definition at line 66 of file doodad.hpp.

◆ nameAndFlags

std::uint32_t wowlib::formats::wmo::root::chunks::SMODoodadDef::nameAndFlags = 0

Packed 24-bit MODN offset / MODI index plus DoodadFlags bits in the high byte.

Definition at line 54 of file doodad.hpp.

Referenced by nameIndex().

◆ orientation

C4Quaternion wowlib::formats::wmo::root::chunks::SMODoodadDef::orientation {}

Orientation quaternion.

Definition at line 60 of file doodad.hpp.

◆ position

C3Vector wowlib::formats::wmo::root::chunks::SMODoodadDef::position {}

Position in WMO model space (Z-up).

Definition at line 57 of file doodad.hpp.

◆ scale

float wowlib::formats::wmo::root::chunks::SMODoodadDef::scale = 1

Uniform scale factor.

Definition at line 63 of file doodad.hpp.


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