C# Class Warcraft.WMO.RootFile.Chunks.ModelDoodadPaths

Represents a block of paths of doodads used by a WMO object. Each path is referenced by other chunks as an offset into this block - most likely a leftover from C/C++ style code. Paths can be retrieved from this class either by indexing the path in DoodadNames, or by using the string offset and calling GetNameByOffset.
Inheritance: IRIFFChunk, IBinarySerializable
显示文件 Open project: Nihlus/libwarcraft Class Usage Examples

Public Properties

Property Type Description
DoodadNames string>>.List

Public Methods

Method Description
GetNameByOffset ( uint nameOffset ) : string

Gets a doodad path by its original offset into the block of paths.

GetSignature ( ) : string

Gets the static data signature of this data block type.

LoadBinaryData ( byte inData ) : void

Deserialzes the provided binary data of the object. This is the full data block which follows the data signature and data block length.

ModelDoodadPaths ( ) : System.Collections.Generic

Creates a new empty doodad path block object.

ModelDoodadPaths ( byte inData ) : System.Collections.Generic

Creates a new doodad path block object by deserializing it from binary data.

Serialize ( ) : byte[]

Serializes the current object into a byte array.

Method Details

GetNameByOffset() public method

Gets a doodad path by its original offset into the block of paths.
public GetNameByOffset ( uint nameOffset ) : string
nameOffset uint The original byte offset of the name.
return string

GetSignature() public method

Gets the static data signature of this data block type.
public GetSignature ( ) : string
return string

LoadBinaryData() public method

Deserialzes the provided binary data of the object. This is the full data block which follows the data signature and data block length.
public LoadBinaryData ( byte inData ) : void
inData byte The binary data containing the object.
return void

ModelDoodadPaths() public method

Creates a new empty doodad path block object.
public ModelDoodadPaths ( ) : System.Collections.Generic
return System.Collections.Generic

ModelDoodadPaths() public method

Creates a new doodad path block object by deserializing it from binary data.
public ModelDoodadPaths ( byte inData ) : System.Collections.Generic
inData byte The binary data containing the doodad paths.
return System.Collections.Generic

Serialize() public method

Serializes the current object into a byte array.
public Serialize ( ) : byte[]
return byte[]

Property Details

DoodadNames public_oe property

The paths of all the doodads referenced by this WMO. Each is stored as an offset into the string block, and the actual string stored there.
public List> DoodadNames
return string>>.List