C# Class Warcraft.ADT.Chunks.TerrainLiquidInstance

Exibir arquivo Open project: Nihlus/libwarcraft Class Usage Examples

Public Properties

Property Type Description
BooleanMap List>
Height byte
HeightLevelRange Range
LiquidBooleanMapOffset uint
LiquidObject Warcraft.DBC.SpecialFields.UInt16ForeignKey
LiquidType Warcraft.DBC.SpecialFields.UInt16ForeignKey
VertexData LiquidVertexData
VertexDataOffset uint
Width byte
XLiquidOffset byte
YLiquidOffset byte

Public Methods

Method Description
GetSize ( ) : int

Gets the size of a liquid instance block.

TerrainLiquidInstance ( byte data ) : System

Method Details

GetSize() public static method

Gets the size of a liquid instance block.
public static GetSize ( ) : int
return int

TerrainLiquidInstance() public method

public TerrainLiquidInstance ( byte data ) : System
data byte
return System

Property Details

BooleanMap public_oe property

public List> BooleanMap
return List>

Height public_oe property

public byte Height
return byte

HeightLevelRange public_oe property

public Range HeightLevelRange
return Range

LiquidBooleanMapOffset public_oe property

Offset to an 8 by 8 map of bit boolean values that determine whether or not an instance is filled or not. If the offset is 0, all tiles are filled.
public uint LiquidBooleanMapOffset
return uint

LiquidObject public_oe property

The liquid object. Foreign key reference to LiquidObjectRec::ID.
public UInt16ForeignKey,Warcraft.DBC.SpecialFields LiquidObject
return Warcraft.DBC.SpecialFields.UInt16ForeignKey

LiquidType public_oe property

The type of the liquid. Foreign key reference to LiquidTypeRec::ID.
public UInt16ForeignKey,Warcraft.DBC.SpecialFields LiquidType
return Warcraft.DBC.SpecialFields.UInt16ForeignKey

VertexData public_oe property

public LiquidVertexData VertexData
return LiquidVertexData

VertexDataOffset public_oe property

Offset to the vertex data of this liquid instance. The format of the data is determined in LiquidMaterialRec::LiquidVertexFormat via LiquidTypeRec::MaterialID. As a side note, oceans (LiquidType = 2) have a hardcoded check that the LiquidVertexFormat also equals 2. Since the vertex data format is undetermined (and as such the length is also undetermined) without a DBC entry, it's up to external programs to read the correct values. You can also use the GameWorld wrapper class.
public uint VertexDataOffset
return uint

Width public_oe property

public byte Width
return byte

XLiquidOffset public_oe property

public byte XLiquidOffset
return byte

YLiquidOffset public_oe property

public byte YLiquidOffset
return byte