Class SmoDoodadDef
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
nameAndFlagsuintpositionC3VectororientationC4QuaternionscalefloatcolorCImVector
SmoDoodadDef(SmoDoodadDef)
Copy-construct: a deep copy of other (the C++ copy constructor).
public SmoDoodadDef(SmoDoodadDef other)
Parameters
otherSmoDoodadDef
Properties
Color
Color override (BGRA); alpha below 0xFF is a MOLT index.
public CImVector Color { get; set; }
Property Value
NameAndFlags
Packed 24-bit MODN offset / MODI index plus DoodadFlags bits in the high byte.
public uint NameAndFlags { get; set; }
Property Value
NameIndex
The 24-bit MODN byte offset (or MODI index) of the model name.
public uint NameIndex { get; }
Property Value
Orientation
Orientation quaternion.
public C4Quaternion Orientation { get; set; }
Property Value
Position
Position in WMO model space (Z-up).
public C3Vector Position { get; set; }
Property Value
Scale
Uniform scale factor.
public float Scale { 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()