C# Класс Warcraft.ADT.Chunks.TerrainLiquidInstance

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
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

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

Метод Описание
GetSize ( ) : int

Gets the size of a liquid instance block.

TerrainLiquidInstance ( byte data ) : System

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

GetSize() публичный статический Метод

Gets the size of a liquid instance block.
public static GetSize ( ) : int
Результат int

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

public TerrainLiquidInstance ( byte data ) : System
data byte
Результат System

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

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

public List> BooleanMap
Результат List>

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

public byte Height
Результат byte

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

public Range HeightLevelRange
Результат Range

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

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

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

The liquid object. Foreign key reference to LiquidObjectRec::ID.
public UInt16ForeignKey,Warcraft.DBC.SpecialFields LiquidObject
Результат Warcraft.DBC.SpecialFields.UInt16ForeignKey

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

The type of the liquid. Foreign key reference to LiquidTypeRec::ID.
public UInt16ForeignKey,Warcraft.DBC.SpecialFields LiquidType
Результат Warcraft.DBC.SpecialFields.UInt16ForeignKey

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

public LiquidVertexData VertexData
Результат LiquidVertexData

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

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

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

public byte Width
Результат byte

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

public byte XLiquidOffset
Результат byte

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

public byte YLiquidOffset
Результат byte