C# Class Warcraft.ADT.Chunks.ModelPlacementEntry

An entry struct containing information about the model
显示文件 Open project: Nihlus/libwarcraft Class Usage Examples

Public Properties

Property Type Description
Flags ModelPlacementFlags
ModelEntryIndex uint
Position Vector3f
Rotation Rotator
ScalingFactor ushort
UniqueID uint

Public Methods

Method Description
GetSize ( ) : int

Gets the size of an entry.

ModelPlacementEntry ( byte data ) : System

Initializes a new instance of the Warcraft.ADT.Chunks.ModelPlacementEntry class.

Method Details

GetSize() public static method

Gets the size of an entry.
public static GetSize ( ) : int
return int

ModelPlacementEntry() public method

Initializes a new instance of the Warcraft.ADT.Chunks.ModelPlacementEntry class.
public ModelPlacementEntry ( byte data ) : System
data byte Data.
return System

Property Details

Flags public_oe property

MMDF flags for the object
public ModelPlacementFlags Flags
return ModelPlacementFlags

ModelEntryIndex public_oe property

Specifies which model to use via the MMID chunk
public uint ModelEntryIndex
return uint

Position public_oe property

Position of the model
public Vector3f Position
return Vector3f

Rotation public_oe property

Rotation of the model
public Rotator Rotation
return Rotator

ScalingFactor public_oe property

Scale of the model. 1024 is the default value, equating to 1.0f. There is no uneven scaling of objects
public ushort ScalingFactor
return ushort

UniqueID public_oe property

A unique actor ID for the model. Blizzard implements this as game global, but it's only checked in loaded tiles
public uint UniqueID
return uint