#include <mg_biome.h>
Public Member Functions | |
ObjDef * | clone () const |
virtual void | resolveNodeNames () |
Public Member Functions inherited from ObjDef | |
virtual | ~ObjDef ()=default |
Public Member Functions inherited from NodeResolver | |
NodeResolver () | |
virtual | ~NodeResolver () |
void | cloneTo (NodeResolver *res) const |
bool | getIdFromNrBacklog (content_t *result_out, const std::string &node_alt, content_t c_fallback, bool error_on_fallback=true) |
bool | getIdsFromNrBacklog (std::vector< content_t > *result_out, bool all_required=false, content_t c_fallback=CONTENT_IGNORE) |
bool | isResolveDone () const |
void | reset (bool resolve_done=false) |
Public Attributes | |
content_t | c_top = CONTENT_IGNORE |
content_t | c_filler = CONTENT_IGNORE |
content_t | c_stone = CONTENT_IGNORE |
content_t | c_water_top = CONTENT_IGNORE |
content_t | c_water = CONTENT_IGNORE |
content_t | c_river_water = CONTENT_IGNORE |
content_t | c_riverbed = CONTENT_IGNORE |
content_t | c_dust = CONTENT_IGNORE |
std::vector< content_t > | c_cave_liquid |
content_t | c_dungeon = CONTENT_IGNORE |
content_t | c_dungeon_alt = CONTENT_IGNORE |
content_t | c_dungeon_stair = CONTENT_IGNORE |
s16 | depth_top = 0 |
s16 | depth_filler = -MAX_MAP_GENERATION_LIMIT |
s16 | depth_water_top = 0 |
s16 | depth_riverbed = 0 |
v3s16 | min_pos = -MAX_MAP_GENERATION_LIMIT_V3 |
v3s16 | max_pos = MAX_MAP_GENERATION_LIMIT_V3 |
float | heat_point = 0.0f |
float | humidity_point = 0.0f |
s16 | vertical_blend = 0 |
float | weight = 1.0f |
Public Attributes inherited from ObjDef | |
u32 | index |
u32 | uid |
ObjDefHandle | handle |
std::string | name |
Public Attributes inherited from NodeResolver | |
std::vector< std::string > | m_nodenames |
std::vector< size_t > | m_nnlistsizes |
Additional Inherited Members | |
Protected Member Functions inherited from ObjDef | |
void | cloneTo (ObjDef *def) const |
Protected Attributes inherited from NodeResolver | |
const NodeDefManager * | m_ndef = nullptr |
u32 | m_nodenames_idx = 0 |
|
virtual |
Implements ObjDef.
References c_cave_liquid, c_dungeon, c_dungeon_alt, c_dungeon_stair, c_dust, c_filler, c_river_water, c_riverbed, c_stone, c_top, c_water, c_water_top, NodeResolver::cloneTo(), ObjDef::cloneTo(), depth_filler, depth_riverbed, depth_top, depth_water_top, heat_point, humidity_point, max_pos, min_pos, vertical_blend, and weight.
|
virtual |
Implements NodeResolver.
References c_cave_liquid, c_dungeon, c_dungeon_alt, c_dungeon_stair, c_dust, c_filler, c_river_water, c_riverbed, c_stone, c_top, c_water, c_water_top, CONTENT_AIR, CONTENT_IGNORE, NodeResolver::getIdFromNrBacklog(), and NodeResolver::getIdsFromNrBacklog().
std::vector<content_t> Biome::c_cave_liquid |
Referenced by clone(), CavesRandomWalk::makeCave(), and resolveNodeNames().
content_t Biome::c_dungeon = CONTENT_IGNORE |
Referenced by clone(), MapgenBasic::generateDungeons(), and resolveNodeNames().
content_t Biome::c_dungeon_alt = CONTENT_IGNORE |
Referenced by clone(), MapgenBasic::generateDungeons(), and resolveNodeNames().
content_t Biome::c_dungeon_stair = CONTENT_IGNORE |
Referenced by clone(), MapgenBasic::generateDungeons(), and resolveNodeNames().
content_t Biome::c_dust = CONTENT_IGNORE |
Referenced by clone(), MapgenBasic::dustTopNodes(), and resolveNodeNames().
content_t Biome::c_filler = CONTENT_IGNORE |
content_t Biome::c_river_water = CONTENT_IGNORE |
Referenced by clone(), MapgenBasic::generateBiomes(), CavesNoiseIntersection::generateCaves(), and resolveNodeNames().
content_t Biome::c_riverbed = CONTENT_IGNORE |
Referenced by clone(), MapgenBasic::generateBiomes(), CavesNoiseIntersection::generateCaves(), and resolveNodeNames().
content_t Biome::c_stone = CONTENT_IGNORE |
content_t Biome::c_top = CONTENT_IGNORE |
content_t Biome::c_water = CONTENT_IGNORE |
Referenced by clone(), MapgenBasic::generateBiomes(), CavesNoiseIntersection::generateCaves(), and resolveNodeNames().
content_t Biome::c_water_top = CONTENT_IGNORE |
Referenced by clone(), MapgenBasic::generateBiomes(), CavesNoiseIntersection::generateCaves(), and resolveNodeNames().
s16 Biome::depth_filler = -MAX_MAP_GENERATION_LIMIT |
s16 Biome::depth_riverbed = 0 |
Referenced by clone(), MapgenBasic::generateBiomes(), CavesNoiseIntersection::generateCaves(), and read_biome_def().
s16 Biome::depth_top = 0 |
s16 Biome::depth_water_top = 0 |
Referenced by clone(), MapgenBasic::generateBiomes(), and read_biome_def().
float Biome::heat_point = 0.0f |
Referenced by BiomeGenOriginal::calcBiomeFromNoise(), clone(), read_biome_def(), and TestMapgen::testBiomeGen().
float Biome::humidity_point = 0.0f |
Referenced by BiomeGenOriginal::calcBiomeFromNoise(), clone(), read_biome_def(), and TestMapgen::testBiomeGen().
v3s16 Biome::max_pos = MAX_MAP_GENERATION_LIMIT_V3 |
v3s16 Biome::min_pos = -MAX_MAP_GENERATION_LIMIT_V3 |
s16 Biome::vertical_blend = 0 |
Referenced by BiomeGenOriginal::calcBiomeFromNoise(), clone(), and read_biome_def().
float Biome::weight = 1.0f |
Referenced by BiomeGenOriginal::calcBiomeFromNoise(), clone(), and read_biome_def().