C# Класс 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.
Наследование: IRIFFChunk, IBinarySerializable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DoodadNames string>>.List

Открытые методы

Метод Описание
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.

Описание методов

GetNameByOffset() публичный Метод

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.
Результат string

GetSignature() публичный Метод

Gets the static data signature of this data block type.
public GetSignature ( ) : string
Результат string

LoadBinaryData() публичный Метод

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.
Результат void

ModelDoodadPaths() публичный Метод

Creates a new empty doodad path block object.
public ModelDoodadPaths ( ) : System.Collections.Generic
Результат System.Collections.Generic

ModelDoodadPaths() публичный Метод

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.
Результат System.Collections.Generic

Serialize() публичный Метод

Serializes the current object into a byte array.
public Serialize ( ) : byte[]
Результат byte[]

Описание свойств

DoodadNames публичное свойство

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
Результат string>>.List