Class SmDoodadDef
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
SmDoodadDef(SmDoodadDef)
Copy-construct: a deep copy of other (the C++ copy constructor).
public SmDoodadDef(SmDoodadDef other)
Parameters
otherSmDoodadDef
Properties
Flags
Flags; DoodadDefFlags bits.
public DoodadDefFlags Flags { get; set; }
Property Value
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
Position
Position, in the map's placement coordinate system.
public C3Vector Position { get; set; }
Property Value
Rotation
Rotation as Euler angles, degrees.
public C3Vector Rotation { get; set; }
Property Value
Scale
Scale, 1024 = 1.0.
public ushort Scale { get; set; }
Property Value
UniqueId
Unique instance id across the whole map.
public uint UniqueId { get; set; }
Property Value
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()