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

#include <wowlib/formats/common/map_placements.hpp>

Public Attributes

std::uint32_t nameId = 0
std::uint32_t uniqueId = 0
 Unique instance id across the whole map (WDT global-WMO records leave it unused).
C3Vector position {}
 Position, in the map's placement coordinate system.
C3Vector rotation {}
 Rotation as Euler angles, degrees.
CAaBox extents {}
 The transformed object's bounding box (position plus the rotated extents); culling and collision use it.
MapObjDefFlags flags {}
 Flags; MapObjDefFlags bits.
std::uint16_t doodadSet = 0
 The WMO doodad set shown by this instance (MODS index, or MWDR when use_sets_from_mwds is set).
std::uint16_t nameSet = 0
 The WMO name set (renames the same model per instance).
std::uint16_t scale = 0
 Scale, 1024 = 1.0, engaged by the has_scale flag (Legion+); padding in older clients.

Detailed Description

Definition at line 41 of file map_placements.hpp.

Member Data Documentation

◆ doodadSet

std::uint16_t wowlib::formats::common::SMMapObjDef::doodadSet = 0

The WMO doodad set shown by this instance (MODS index, or MWDR when use_sets_from_mwds is set).

Definition at line 60 of file map_placements.hpp.

◆ extents

CAaBox wowlib::formats::common::SMMapObjDef::extents {}

The transformed object's bounding box (position plus the rotated extents); culling and collision use it.

Definition at line 54 of file map_placements.hpp.

◆ flags

MapObjDefFlags wowlib::formats::common::SMMapObjDef::flags {}

Flags; MapObjDefFlags bits.

Definition at line 57 of file map_placements.hpp.

◆ nameId

std::uint32_t wowlib::formats::common::SMMapObjDef::nameId = 0

Definition at line 42 of file map_placements.hpp.

◆ nameSet

std::uint16_t wowlib::formats::common::SMMapObjDef::nameSet = 0

The WMO name set (renames the same model per instance).

Definition at line 63 of file map_placements.hpp.

◆ position

C3Vector wowlib::formats::common::SMMapObjDef::position {}

Position, in the map's placement coordinate system.

Definition at line 48 of file map_placements.hpp.

◆ rotation

C3Vector wowlib::formats::common::SMMapObjDef::rotation {}

Rotation as Euler angles, degrees.

Definition at line 51 of file map_placements.hpp.

◆ scale

std::uint16_t wowlib::formats::common::SMMapObjDef::scale = 0

Scale, 1024 = 1.0, engaged by the has_scale flag (Legion+); padding in older clients.

Definition at line 66 of file map_placements.hpp.

◆ uniqueId

std::uint32_t wowlib::formats::common::SMMapObjDef::uniqueId = 0

Unique instance id across the whole map (WDT global-WMO records leave it unused).

Definition at line 45 of file map_placements.hpp.


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