#include <mapgen.h>
Public Member Functions | |
MapgenParams ()=default | |
virtual | ~MapgenParams () |
virtual void | readParams (const Settings *settings) |
virtual void | writeParams (Settings *settings) const |
virtual void | setDefaultSettings (Settings *settings) |
s32 | getSpawnRangeMax () |
Public Attributes | |
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 |
BiomeParams * | bparams = nullptr |
s16 | mapgen_edge_min = -MAX_MAP_GENERATION_LIMIT |
s16 | mapgen_edge_max = MAX_MAP_GENERATION_LIMIT |
Private Attributes | |
bool | m_mapgen_edges_calculated = false |
|
default |
|
virtual |
References bparams.
s32 MapgenParams::getSpawnRangeMax | ( | ) |
References chunksize, get_mapgen_edges(), m_mapgen_edges_calculated, mapgen_edge_max, mapgen_edge_min, mapgen_limit, and MYMIN.
Referenced by Server::findSpawnPos().
|
virtual |
Reimplemented in MapgenCarpathianParams, MapgenFlatParams, MapgenFractalParams, MapgenSinglenodeParams, MapgenV5Params, MapgenV6Params, MapgenV7Params, and MapgenValleysParams.
References BIOMEGEN_ORIGINAL, bparams, chunksize, BiomeManager::createBiomeParams(), flagdesc_mapgen, flags, g_settings, Mapgen::getMapgenType(), MAPGEN_DEFAULT, MAPGEN_INVALID, mapgen_limit, mgtype, myrand_bytes(), rangelim, read_seed(), BiomeParams::readParams(), BiomeParams::seed, seed, settings, and water_level.
Referenced by MapSettingsManager::makeMapgenParams().
|
inlinevirtual |
Reimplemented in MapgenCarpathianParams, MapgenFlatParams, MapgenFractalParams, MapgenV5Params, MapgenV6Params, MapgenV7Params, and MapgenValleysParams.
Referenced by Mapgen::setDefaultSettings().
|
virtual |
Reimplemented in MapgenCarpathianParams, MapgenFlatParams, MapgenFractalParams, MapgenSinglenodeParams, MapgenV5Params, MapgenV6Params, MapgenV7Params, and MapgenValleysParams.
References bparams, chunksize, flagdesc_mapgen, flags, Mapgen::getMapgenName(), mapgen_limit, mgtype, seed, settings, water_level, and BiomeParams::writeParams().
Referenced by MapSettingsManager::saveMapMeta().
BiomeParams* MapgenParams::bparams = nullptr |
s16 MapgenParams::chunksize = 5 |
u32 MapgenParams::flags = 0 |
Referenced by Mapgen::Mapgen(), readParams(), TestMapSettingsManager::testMapSettingsManager(), and writeParams().
|
private |
Referenced by getSpawnRangeMax().
s16 MapgenParams::mapgen_edge_max = MAX_MAP_GENERATION_LIMIT |
Referenced by getSpawnRangeMax().
s16 MapgenParams::mapgen_edge_min = -MAX_MAP_GENERATION_LIMIT |
Referenced by getSpawnRangeMax().
s16 MapgenParams::mapgen_limit = MAX_MAP_GENERATION_LIMIT |
Referenced by Mapgen::Mapgen(), getSpawnRangeMax(), readParams(), and writeParams().
MapgenType MapgenParams::mgtype = MAPGEN_DEFAULT |
u64 MapgenParams::seed = 0 |
u32 MapgenParams::spflags = 0 |
Referenced by MapgenCarpathian::MapgenCarpathian(), MapgenFlat::MapgenFlat(), MapgenFractal::MapgenFractal(), MapgenV5::MapgenV5(), MapgenV6::MapgenV6(), MapgenV7::MapgenV7(), MapgenValleys::MapgenValleys(), MapgenCarpathianParams::readParams(), MapgenFlatParams::readParams(), MapgenFractalParams::readParams(), MapgenV5Params::readParams(), MapgenV6Params::readParams(), MapgenV7Params::readParams(), MapgenValleysParams::readParams(), MapgenCarpathianParams::writeParams(), MapgenFlatParams::writeParams(), MapgenFractalParams::writeParams(), MapgenV5Params::writeParams(), MapgenV6Params::writeParams(), MapgenV7Params::writeParams(), and MapgenValleysParams::writeParams().
s16 MapgenParams::water_level = 1 |