TrinityCore
adt.h File Reference
#include "Define.h"
+ Include dependency graph for adt.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adt_MCVT
 
struct  adt_MCLQ
 
struct  adt_MCLQ::liquid_data
 
struct  adt_MCNK
 
struct  adt_liquid_instance
 
struct  adt_liquid_attributes
 
struct  adt_MH2O
 
struct  adt_MH2O::adt_LIQUID
 
struct  adt_MFBO
 
struct  adt_MFBO::plane
 

Macros

#define TILESIZE   (533.33333f)
 
#define CHUNKSIZE   ((TILESIZE) / 16.0f)
 
#define UNITSIZE   (CHUNKSIZE / 8.0f)
 
#define ADT_CELLS_PER_GRID   16
 
#define ADT_CELL_SIZE   8
 
#define ADT_GRID_SIZE   (ADT_CELLS_PER_GRID*ADT_CELL_SIZE)
 
#define ADT_LIQUID_HEADER_FULL_LIGHT   0x01
 
#define ADT_LIQUID_HEADER_NO_HIGHT   0x02
 

Enumerations

enum  LiquidType { LIQUID_TYPE_WATER = 0 , LIQUID_TYPE_OCEAN = 1 , LIQUID_TYPE_MAGMA = 2 , LIQUID_TYPE_SLIME = 3 }
 
enum class  LiquidVertexFormatType : uint16 {
  HeightDepth = 0 , HeightTextureCoord = 1 , Depth = 2 , HeightDepthTextureCoord = 3 ,
  Unk4 = 4 , Unk5 = 5
}
 

Macro Definition Documentation

◆ ADT_CELL_SIZE

#define ADT_CELL_SIZE   8

Definition at line 39 of file adt.h.

◆ ADT_CELLS_PER_GRID

#define ADT_CELLS_PER_GRID   16

Definition at line 38 of file adt.h.

◆ ADT_GRID_SIZE

#define ADT_GRID_SIZE   (ADT_CELLS_PER_GRID*ADT_CELL_SIZE)

Definition at line 40 of file adt.h.

◆ ADT_LIQUID_HEADER_FULL_LIGHT

#define ADT_LIQUID_HEADER_FULL_LIGHT   0x01

Definition at line 135 of file adt.h.

◆ ADT_LIQUID_HEADER_NO_HIGHT

#define ADT_LIQUID_HEADER_NO_HIGHT   0x02

Definition at line 136 of file adt.h.

◆ CHUNKSIZE

#define CHUNKSIZE   ((TILESIZE) / 16.0f)

Definition at line 24 of file adt.h.

◆ TILESIZE

#define TILESIZE   (533.33333f)

Definition at line 23 of file adt.h.

◆ UNITSIZE

#define UNITSIZE   (CHUNKSIZE / 8.0f)

Definition at line 25 of file adt.h.

Enumeration Type Documentation

◆ LiquidType

enum LiquidType
Enumerator
LIQUID_TYPE_WATER 
LIQUID_TYPE_OCEAN 
LIQUID_TYPE_MAGMA 
LIQUID_TYPE_SLIME 

Definition at line 27 of file adt.h.

◆ LiquidVertexFormatType

enum class LiquidVertexFormatType : uint16
strong
Enumerator
HeightDepth 
HeightTextureCoord 
Depth 
HeightDepthTextureCoord 
Unk4 
Unk5 

Definition at line 138 of file adt.h.