Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
adt.h File Reference
#include "loadlib.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_liquid_header
class  adt_MCLQ
struct  adt_MCLQ::liquid_data
class  adt_MCNK
class  adt_MCVT
class  adt_MH2O
struct  adt_MH2O::adt_LIQUID

Macros

#define ADT_CELL_SIZE   8
#define ADT_CELLS_PER_GRID   16
#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
#define CHUNKSIZE   ((TILESIZE) / 16.0f)
#define TILESIZE   (533.33333f)
#define UNITSIZE   (CHUNKSIZE / 8.0f)

Enumerations

enum  LiquidType { LIQUID_TYPE_WATER = 0 , LIQUID_TYPE_OCEAN = 1 , LIQUID_TYPE_MAGMA = 2 , LIQUID_TYPE_SLIME = 3 }

Macro Definition Documentation

◆ ADT_CELL_SIZE

#define ADT_CELL_SIZE   8

Definition at line 27 of file adt.h.

Referenced by ConvertADT().

◆ ADT_CELLS_PER_GRID

#define ADT_CELLS_PER_GRID   16

Definition at line 26 of file adt.h.

Referenced by ConvertADT().

◆ ADT_GRID_SIZE

#define ADT_GRID_SIZE   (ADT_CELLS_PER_GRID*ADT_CELL_SIZE)

Definition at line 28 of file adt.h.

Referenced by ConvertADT().

◆ ADT_LIQUID_HEADER_FULL_LIGHT

#define ADT_LIQUID_HEADER_FULL_LIGHT   0x01

Definition at line 126 of file adt.h.

Referenced by adt_MH2O::getLiquidFullLightMap(), and adt_MH2O::getLiquidLightMap().

◆ ADT_LIQUID_HEADER_NO_HIGHT

#define ADT_LIQUID_HEADER_NO_HIGHT   0x02

◆ CHUNKSIZE

#define CHUNKSIZE   ((TILESIZE) / 16.0f)

Definition at line 12 of file adt.h.

◆ TILESIZE

#define TILESIZE   (533.33333f)

Definition at line 11 of file adt.h.

◆ UNITSIZE

#define UNITSIZE   (CHUNKSIZE / 8.0f)

Definition at line 13 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 15 of file adt.h.