Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
MapgenFractalParams Struct Reference

#include <mapgen_fractal.h>

+ Inheritance diagram for MapgenFractalParams:
+ Collaboration diagram for MapgenFractalParams:

Public Member Functions

 MapgenFractalParams ()
 
 ~MapgenFractalParams ()=default
 
void readParams (const Settings *settings)
 
void writeParams (Settings *settings) const
 
void setDefaultSettings (Settings *settings)
 
- Public Member Functions inherited from MapgenParams
 MapgenParams ()=default
 
virtual ~MapgenParams ()
 
s32 getSpawnRangeMax ()
 

Public Attributes

float cave_width = 0.09f
 
s16 large_cave_depth = -33
 
u16 small_cave_num_min = 0
 
u16 small_cave_num_max = 0
 
u16 large_cave_num_min = 0
 
u16 large_cave_num_max = 2
 
float large_cave_flooded = 0.5f
 
s16 dungeon_ymin = -31000
 
s16 dungeon_ymax = 31000
 
u16 fractal = 1
 
u16 iterations = 11
 
v3f scale = v3f(4096.0, 1024.0, 4096.0)
 
v3f offset = v3f(1.52, 0.0, 0.0)
 
float slice_w = 0.0f
 
float julia_x = 0.267f
 
float julia_y = 0.2f
 
float julia_z = 0.133f
 
float julia_w = 0.067f
 
NoiseParams np_seabed
 
NoiseParams np_filler_depth
 
NoiseParams np_cave1
 
NoiseParams np_cave2
 
NoiseParams np_dungeons
 
- Public Attributes inherited from MapgenParams
MapgenType mgtype = MAPGEN_DEFAULT
 
s16 chunksize = 5
 
u64 seed = 0
 
s16 water_level = 1
 
s16 mapgen_limit = MAX_MAP_GENERATION_LIMIT
 
u32 flags = 0
 
u32 spflags = 0
 
BiomeParamsbparams = nullptr
 
s16 mapgen_edge_min = -MAX_MAP_GENERATION_LIMIT
 
s16 mapgen_edge_max = MAX_MAP_GENERATION_LIMIT
 

Constructor & Destructor Documentation

◆ MapgenFractalParams()

MapgenFractalParams::MapgenFractalParams ( )

◆ ~MapgenFractalParams()

MapgenFractalParams::~MapgenFractalParams ( )
default

Member Function Documentation

◆ readParams()

◆ setDefaultSettings()

void MapgenFractalParams::setDefaultSettings ( Settings * settings)
virtual

Reimplemented from MapgenParams.

References flagdesc_mapgen_fractal, MGFRACTAL_TERRAIN, and settings.

◆ writeParams()

Member Data Documentation

◆ cave_width

float MapgenFractalParams::cave_width = 0.09f

◆ dungeon_ymax

s16 MapgenFractalParams::dungeon_ymax = 31000

◆ dungeon_ymin

s16 MapgenFractalParams::dungeon_ymin = -31000

◆ fractal

u16 MapgenFractalParams::fractal = 1

◆ iterations

u16 MapgenFractalParams::iterations = 11

◆ julia_w

float MapgenFractalParams::julia_w = 0.067f

◆ julia_x

float MapgenFractalParams::julia_x = 0.267f

◆ julia_y

float MapgenFractalParams::julia_y = 0.2f

◆ julia_z

float MapgenFractalParams::julia_z = 0.133f

◆ large_cave_depth

s16 MapgenFractalParams::large_cave_depth = -33

◆ large_cave_flooded

float MapgenFractalParams::large_cave_flooded = 0.5f

◆ large_cave_num_max

u16 MapgenFractalParams::large_cave_num_max = 2

◆ large_cave_num_min

u16 MapgenFractalParams::large_cave_num_min = 0

◆ np_cave1

NoiseParams MapgenFractalParams::np_cave1

◆ np_cave2

NoiseParams MapgenFractalParams::np_cave2

◆ np_dungeons

NoiseParams MapgenFractalParams::np_dungeons

◆ np_filler_depth

NoiseParams MapgenFractalParams::np_filler_depth

◆ np_seabed

NoiseParams MapgenFractalParams::np_seabed

◆ offset

v3f MapgenFractalParams::offset = v3f(1.52, 0.0, 0.0)

◆ scale

v3f MapgenFractalParams::scale = v3f(4096.0, 1024.0, 4096.0)

◆ slice_w

float MapgenFractalParams::slice_w = 0.0f

◆ small_cave_num_max

u16 MapgenFractalParams::small_cave_num_max = 0

◆ small_cave_num_min

u16 MapgenFractalParams::small_cave_num_min = 0

The documentation for this struct was generated from the following files: