C# Class Warcraft.ADT.Chunks.TerrainHeader

MHDR Chunk - Contains offset for all major chunks in the ADT. All offsets are from the start of the MHDR + 4 bytes to compensate for the size field.
Inheritance: IRIFFChunk
显示文件 Open project: Nihlus/libwarcraft Class Usage Examples

Public Properties

Property Type Description
BoundingBoxOffset int
Flags TerrainHeaderFlags
LiquidOffset int
MapChunkOffsetsOffset int
ModelIndicesOffset int
ModelPlacementInformationOffset int
ModelsOffset int
TextureFlagsOffset int
TexturesOffset int
WorldModelObjectIndicesOffset int
WorldModelObjectPlacementInformationOffset int
WorldModelObjectsOffset int

Public Methods

Method Description
GetSignature ( ) : string
LoadBinaryData ( byte inData ) : void
TerrainHeader ( ) : System
TerrainHeader ( byte inData ) : System

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

Method Details

GetSignature() public method

public GetSignature ( ) : string
return string

LoadBinaryData() public method

public LoadBinaryData ( byte inData ) : void
inData byte
return void

TerrainHeader() public method

public TerrainHeader ( ) : System
return System

TerrainHeader() public method

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

Property Details

BoundingBoxOffset public_oe property

Offset into the file where the MFBO Chunk can be found. This is only set if the Flags contains MDHR_MFBO.
public int BoundingBoxOffset
return int

Flags public_oe property

Flags for this ADT
public TerrainHeaderFlags Flags
return TerrainHeaderFlags

LiquidOffset public_oe property

Offset into the file where the MH2O Chunk can be found.
public int LiquidOffset
return int

MapChunkOffsetsOffset public_oe property

Offset into the file where the MCIN Chunk can be found.
public int MapChunkOffsetsOffset
return int

ModelIndicesOffset public_oe property

Offset into the file where the MMID Chunk can be found.
public int ModelIndicesOffset
return int

ModelPlacementInformationOffset public_oe property

Offset into the file where the MMDF Chunk can be found.
public int ModelPlacementInformationOffset
return int

ModelsOffset public_oe property

Offset into the file where the MMDX Chunk can be found.
public int ModelsOffset
return int

TextureFlagsOffset public_oe property

Offset into the file where the MTXF Chunk can be found.
public int TextureFlagsOffset
return int

TexturesOffset public_oe property

Offset into the file where the MTEX Chunk can be found.
public int TexturesOffset
return int

WorldModelObjectIndicesOffset public_oe property

Offset into the file where the MWID Chunk can be found.
public int WorldModelObjectIndicesOffset
return int

WorldModelObjectPlacementInformationOffset public_oe property

Offset into the file where the MODF Chunk can be found.
public int WorldModelObjectPlacementInformationOffset
return int

WorldModelObjectsOffset public_oe property

Offset into the file where the MWMO Chunk can be found.
public int WorldModelObjectsOffset
return int