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
파일 보기 프로젝트 열기: Nihlus/libwarcraft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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