Table of Contents

Class SmoDoodadDef

Namespace
WoWLib.Formats.WMO.Root.Chunks
Assembly
WoWLib.dll

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

public class SmoDoodadDef : IDisposable
Inheritance
SmoDoodadDef
Implements
Inherited Members

Constructors

SmoDoodadDef()

public SmoDoodadDef()

SmoDoodadDef(uint, C3Vector, C4Quaternion, float, CImVector)

public SmoDoodadDef(uint nameAndFlags, C3Vector position, C4Quaternion orientation, float scale, CImVector color)

Parameters

nameAndFlags uint
position C3Vector
orientation C4Quaternion
scale float
color CImVector

SmoDoodadDef(SmoDoodadDef)

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

public SmoDoodadDef(SmoDoodadDef other)

Parameters

other SmoDoodadDef

Properties

Color

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

public CImVector Color { get; set; }

Property Value

CImVector

NameAndFlags

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

public uint NameAndFlags { get; set; }

Property Value

uint

NameIndex

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

public uint NameIndex { get; }

Property Value

uint

Orientation

Orientation quaternion.

public C4Quaternion Orientation { get; set; }

Property Value

C4Quaternion

Position

Position in WMO model space (Z-up).

public C3Vector Position { get; set; }

Property Value

C3Vector

Scale

Uniform scale factor.

public float Scale { get; set; }

Property Value

float

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()