23#define TILESIZE (533.33333f)
24#define CHUNKSIZE ((TILESIZE) / 16.0f)
25#define UNITSIZE (CHUNKSIZE / 8.0f)
38#define ADT_CELLS_PER_GRID 16
39#define ADT_CELL_SIZE 8
40#define ADT_GRID_SIZE (ADT_CELLS_PER_GRID*ADT_CELL_SIZE)
170 if (
cells[x][y].offsMCNK)
239 if (
liquid[x][y].OffsetAttributes)
241 return { 0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF };
315 return 0xFFFFFFFFFFFFFFFFuLL;
#define ADT_CELLS_PER_GRID
struct adt_MCIN::adt_CELLS cells[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID]
adt_MCNK * getMCNK(int x, int y)
struct adt_MCLQ::liquid_data liquid[ADT_CELL_SIZE+1][ADT_CELL_SIZE+1]
uint8 flags[ADT_CELL_SIZE][ADT_CELL_SIZE]
float height_map[(ADT_CELL_SIZE+1) *(ADT_CELL_SIZE+1)+ADT_CELL_SIZE *ADT_CELL_SIZE]
uint16 const * GetLiquidTextureCoordMap(adt_liquid_instance const *h, int32 pos) const
adt_liquid_attributes GetLiquidAttributes(int32 x, int32 y) const
adt_liquid_instance const * GetLiquidInstance(int32 x, int32 y) const
int8 GetLiquidDepth(adt_liquid_instance const *h, int32 pos) const
float GetLiquidHeight(adt_liquid_instance const *h, int32 pos) const
uint64 GetLiquidExistsBitmap(adt_liquid_instance const *h) const
struct adt_MH2O::adt_LIQUID liquid[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID]
uint16 GetLiquidType(adt_liquid_instance const *h) const
uint32 OffsetExistsBitmap
LiquidVertexFormatType LiquidVertexFormat