Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
mapgen.h File Reference
#include "noise.h"
#include "nodedef.h"
#include "util/string.h"
#include "util/container.h"
#include <utility>
+ Include dependency graph for mapgen.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GenerateNotifier
 
struct  GenerateNotifier::GenNotifyEvent
 
struct  MapgenParams
 
class  Mapgen
 
class  MapgenBasic
 

Macros

#define MAPGEN_DEFAULT   MAPGEN_V7
 
#define MAPGEN_DEFAULT_NAME   "v7"
 
#define MG_CAVES   0x02
 
#define MG_DUNGEONS   0x04
 
#define MG_LIGHT   0x10
 
#define MG_DECORATIONS   0x20
 
#define MG_BIOMES   0x40
 
#define MG_ORES   0x80
 

Typedefs

typedef u16 biome_t
 

Enumerations

enum  MapgenObject {
  MGOBJ_VMANIP , MGOBJ_HEIGHTMAP , MGOBJ_BIOMEMAP , MGOBJ_HEATMAP ,
  MGOBJ_HUMIDMAP , MGOBJ_GENNOTIFY
}
 
enum  GenNotifyType {
  GENNOTIFY_DUNGEON , GENNOTIFY_TEMPLE , GENNOTIFY_CAVE_BEGIN , GENNOTIFY_CAVE_END ,
  GENNOTIFY_LARGECAVE_BEGIN , GENNOTIFY_LARGECAVE_END , GENNOTIFY_DECORATION , GENNOTIFY_CUSTOM ,
  NUM_GENNOTIFY_TYPES
}
 
enum  MapgenType {
  MAPGEN_V7 , MAPGEN_VALLEYS , MAPGEN_CARPATHIAN , MAPGEN_V5 ,
  MAPGEN_FLAT , MAPGEN_FRACTAL , MAPGEN_SINGLENODE , MAPGEN_V6 ,
  MAPGEN_INVALID
}
 

Functions

std::pair< s16, s16 > get_mapgen_edges (s16 mapgen_limit, s16 chunksize)
 

Variables

FlagDesc flagdesc_mapgen []
 
FlagDesc flagdesc_gennotify []
 

Macro Definition Documentation

◆ MAPGEN_DEFAULT

#define MAPGEN_DEFAULT   MAPGEN_V7

◆ MAPGEN_DEFAULT_NAME

#define MAPGEN_DEFAULT_NAME   "v7"

◆ MG_BIOMES

◆ MG_CAVES

◆ MG_DECORATIONS

◆ MG_DUNGEONS

◆ MG_LIGHT

◆ MG_ORES

Typedef Documentation

◆ biome_t

typedef u16 biome_t

Enumeration Type Documentation

◆ GenNotifyType

Enumerator
GENNOTIFY_DUNGEON 
GENNOTIFY_TEMPLE 
GENNOTIFY_CAVE_BEGIN 
GENNOTIFY_CAVE_END 
GENNOTIFY_LARGECAVE_BEGIN 
GENNOTIFY_LARGECAVE_END 
GENNOTIFY_DECORATION 
GENNOTIFY_CUSTOM 
NUM_GENNOTIFY_TYPES 

◆ MapgenObject

Enumerator
MGOBJ_VMANIP 
MGOBJ_HEIGHTMAP 
MGOBJ_BIOMEMAP 
MGOBJ_HEATMAP 
MGOBJ_HUMIDMAP 
MGOBJ_GENNOTIFY 

◆ MapgenType

enum MapgenType
Enumerator
MAPGEN_V7 
MAPGEN_VALLEYS 
MAPGEN_CARPATHIAN 
MAPGEN_V5 
MAPGEN_FLAT 
MAPGEN_FRACTAL 
MAPGEN_SINGLENODE 
MAPGEN_V6 
MAPGEN_INVALID 

Function Documentation

◆ get_mapgen_edges()

std::pair< s16, s16 > get_mapgen_edges ( s16 mapgen_limit,
s16 chunksize )

References MAP_BLOCKSIZE, MAX_MAP_GENERATION_LIMIT, MYMAX, and rangelim.

Referenced by MapgenParams::getSpawnRangeMax(), ModApiMapgen::Initialize(), ModApiMapgen::InitializeEmerge(), and ModApiMapgen::l_get_mapgen_edges().

+ Here is the caller graph for this function:

Variable Documentation

◆ flagdesc_gennotify

◆ flagdesc_mapgen