Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
emerge.h File Reference
#include <map>
#include <mutex>
#include "network/networkprotocol.h"
#include "irr_v3d.h"
#include "util/container.h"
#include "util/metricsbackend.h"
#include "mapgen/mapgen.h"
#include "map.h"
+ Include dependency graph for emerge.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BlockMakeData
 
struct  BlockEmergeData
 
class  EmergeParams
 
class  EmergeManager
 

Macros

#define BLOCK_EMERGE_ALLOW_GEN   (1 << 0)
 
#define BLOCK_EMERGE_FORCE_QUEUE   (1 << 1)
 
#define EMERGE_DBG_OUT(x)
 

Typedefs

typedef void(* EmergeCompletionCallback) (v3s16 blockpos, EmergeAction action, void *param)
 
typedef std::vector< std::pair< EmergeCompletionCallback, void * > > EmergeCallbackList
 

Enumerations

enum  EmergeAction {
  EMERGE_CANCELLED , EMERGE_ERRORED , EMERGE_FROM_MEMORY , EMERGE_FROM_DISK ,
  EMERGE_GENERATED
}
 

Variables

constexpr const char * emergeActionStrs []
 

Macro Definition Documentation

◆ BLOCK_EMERGE_ALLOW_GEN

◆ BLOCK_EMERGE_FORCE_QUEUE

#define BLOCK_EMERGE_FORCE_QUEUE   (1 << 1)

◆ EMERGE_DBG_OUT

#define EMERGE_DBG_OUT ( x)
Value:
{ \
if (enable_mapgen_debug_info) \
infostream << "EmergeThread: " x << std::endl; \
}
thread_local LogStream infostream

Referenced by ServerMap::finishBlockMake(), EmergeThread::finishGen(), ServerMap::initBlockMake(), and EmergeThread::run().

Typedef Documentation

◆ EmergeCallbackList

typedef std::vector< std::pair< EmergeCompletionCallback, void * >> EmergeCallbackList

◆ EmergeCompletionCallback

typedef void(* EmergeCompletionCallback) (v3s16 blockpos, EmergeAction action, void *param)

Enumeration Type Documentation

◆ EmergeAction

Enumerator
EMERGE_CANCELLED 
EMERGE_ERRORED 
EMERGE_FROM_MEMORY 
EMERGE_FROM_DISK 
EMERGE_GENERATED 

Variable Documentation

◆ emergeActionStrs

const char* emergeActionStrs[]
constexpr
Initial value:
= {
"cancelled",
"errored",
"from_memory",
"from_disk",
"generated",
}

Referenced by EmergeManager::EmergeManager().