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
Afficher le fichier Open project: Nihlus/libwarcraft Class Usage Examples

Méthodes publiques

Свойство Type Description
DoodadNames string>>.List

Méthodes publiques

Méthode 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 méthode

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.
Résultat string

GetSignature() public méthode

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

LoadBinaryData() public méthode

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.
Résultat void

ModelDoodadPaths() public méthode

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

ModelDoodadPaths() public méthode

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.
Résultat System.Collections.Generic

Serialize() public méthode

Serializes the current object into a byte array.
public Serialize ( ) : byte[]
Résultat 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
Résultat string>>.List