Table of Contents

Class SmDoodadDef

Namespace
WoWLib.Formats.Common
Assembly
WoWLib.dll

An M2 (doodad) placement (the 36-byte MDDF record of ADT, reused by the WDL MLDD low-resolution set): which model, where, and at what scale.

public class SmDoodadDef : IDisposable
Inheritance
SmDoodadDef
Implements
Inherited Members

Constructors

SmDoodadDef()

public SmDoodadDef()

SmDoodadDef(uint, uint, C3Vector, C3Vector, ushort, DoodadDefFlags)

public SmDoodadDef(uint nameId, uint uniqueId, C3Vector position, C3Vector rotation, ushort scale, DoodadDefFlags flags)

Parameters

nameId uint
uniqueId uint
position C3Vector
rotation C3Vector
scale ushort
flags DoodadDefFlags

SmDoodadDef(SmDoodadDef)

Copy-construct: a deep copy of other (the C++ copy constructor).

public SmDoodadDef(SmDoodadDef other)

Parameters

other SmDoodadDef

Properties

Flags

Flags; DoodadDefFlags bits.

public DoodadDefFlags Flags { get; set; }

Property Value

DoodadDefFlags

NameId

The model: an MMID name-table reference, or a FileDataID when flags has entry_is_fdid (Legion+; WDL MLDD entries are always FileDataIDs).

public uint NameId { get; set; }

Property Value

uint

Position

Position, in the map's placement coordinate system.

public C3Vector Position { get; set; }

Property Value

C3Vector

Rotation

Rotation as Euler angles, degrees.

public C3Vector Rotation { get; set; }

Property Value

C3Vector

Scale

Scale, 1024 = 1.0.

public ushort Scale { get; set; }

Property Value

ushort

UniqueId

Unique instance id across the whole map.

public uint UniqueId { get; set; }

Property Value

uint

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public virtual void Dispose()