Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Namespaces | Macros | Typedefs
ChunkDef.h File Reference
#include "BiomeDef.h"
Include dependency graph for ChunkDef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cChunkCoordCallback
 Interface class used as a callback for operations that involve chunk coords. More...
 
class  cChunkCoords
 Wraps the chunk coords into a single structure. More...
 
class  cChunkCoordsHash
 A simple hash function for chunk coords, we assume that chunk coords won't use more than 16 bits, so the hash is almost an identity. More...
 
class  cChunkDef
 Constants used throughout the code, useful typedefs and utility functions. More...
 
class  cClientDiffCallback
 Interface class used for comparing clients of two chunks. More...
 
class  cCoordWithData< X >
 Generic template that can store any kind of data together with a triplet of 3 coords. More...
 
struct  fmt::formatter< cChunkCoords >
 
struct  sSetBlock
 

Namespaces

 fmt
 Implements custom fmtlib formatting for cChunkCoords.
 

Macros

#define AXIS_ORDER   AXIS_ORDER_XZY
 
#define AXIS_ORDER_XZY   2
 
#define AXIS_ORDER_YZX   1
 

Typedefs

typedef unsigned char BLOCKTYPE
 The datatype used by blockdata. More...
 
typedef std::list< cChunkCoordscChunkCoordsList
 
typedef std::vector< cChunkCoordscChunkCoordsVector
 
typedef cCoordWithData< int > cCoordWithInt
 
typedef std::list< cCoordWithIntcCoordWithIntList
 
typedef std::vector< cCoordWithIntcCoordWithIntVector
 
using cEntityList = std::vector< OwnedEntity >
 
typedef unsigned char HEIGHTTYPE
 The type used by the heightmap. More...
 
typedef unsigned char NIBBLETYPE
 The datatype used by nibbledata (meta, light, skylight) More...
 
using OwnedEntity = std::unique_ptr< cEntity >
 
typedef std::vector< sSetBlocksSetBlockVector
 

Macro Definition Documentation

◆ AXIS_ORDER

#define AXIS_ORDER   AXIS_ORDER_XZY

Definition at line 19 of file ChunkDef.h.

◆ AXIS_ORDER_XZY

#define AXIS_ORDER_XZY   2

Definition at line 18 of file ChunkDef.h.

◆ AXIS_ORDER_YZX

#define AXIS_ORDER_YZX   1

Definition at line 17 of file ChunkDef.h.

Typedef Documentation

◆ BLOCKTYPE

typedef unsigned char BLOCKTYPE

The datatype used by blockdata.

Definition at line 41 of file ChunkDef.h.

◆ cChunkCoordsList

typedef std::list<cChunkCoords> cChunkCoordsList

Definition at line 443 of file ChunkDef.h.

◆ cChunkCoordsVector

typedef std::vector<cChunkCoords> cChunkCoordsVector

Definition at line 444 of file ChunkDef.h.

◆ cCoordWithInt

Definition at line 500 of file ChunkDef.h.

◆ cCoordWithIntList

typedef std::list<cCoordWithInt> cCoordWithIntList

Definition at line 502 of file ChunkDef.h.

◆ cCoordWithIntVector

typedef std::vector<cCoordWithInt> cCoordWithIntVector

Definition at line 503 of file ChunkDef.h.

◆ cEntityList

using cEntityList = std::vector<OwnedEntity>

Definition at line 33 of file ChunkDef.h.

◆ HEIGHTTYPE

typedef unsigned char HEIGHTTYPE

The type used by the heightmap.

Definition at line 47 of file ChunkDef.h.

◆ NIBBLETYPE

typedef unsigned char NIBBLETYPE

The datatype used by nibbledata (meta, light, skylight)

Definition at line 44 of file ChunkDef.h.

◆ OwnedEntity

using OwnedEntity = std::unique_ptr<cEntity>

Definition at line 32 of file ChunkDef.h.

◆ sSetBlockVector

typedef std::vector<sSetBlock> sSetBlockVector

Definition at line 441 of file ChunkDef.h.