Table of Contents

Class LodMapObjDef

Namespace
WoWLib.Formats.WDL.Chunks
Assembly
WoWLib.dll

A low-resolution WMO placement (an MLMD record, Legion+): an SMMapObjDef without the extents — those live in the parallel MLMX record. name_id is always a FileDataID here (the WDL has no name table).

public class LodMapObjDef : IDisposable
Inheritance
LodMapObjDef
Implements
Inherited Members

Constructors

LodMapObjDef()

public LodMapObjDef()

LodMapObjDef(uint, uint, C3Vector, C3Vector, MapObjDefFlags, ushort, ushort, ushort)

public LodMapObjDef(uint nameId, uint uniqueId, C3Vector position, C3Vector rotation, MapObjDefFlags flags, ushort doodadSet, ushort nameSet, ushort scale)

Parameters

nameId uint
uniqueId uint
position C3Vector
rotation C3Vector
flags MapObjDefFlags
doodadSet ushort
nameSet ushort
scale ushort

LodMapObjDef(LodMapObjDef)

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

public LodMapObjDef(LodMapObjDef other)

Parameters

other LodMapObjDef

Properties

DoodadSet

The WMO doodad set shown by this instance.

public ushort DoodadSet { get; set; }

Property Value

ushort

Flags

Flags; MapObjDefFlags bits.

public MapObjDefFlags Flags { get; set; }

Property Value

MapObjDefFlags

NameId

The WMO FileDataID.

public uint NameId { get; set; }

Property Value

uint

NameSet

The WMO name set.

public ushort NameSet { get; set; }

Property Value

ushort

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; matches the full-resolution ADT placement.

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