#include <mapgen_singlenode.h>
Public Member Functions | |
MapgenSinglenode (MapgenParams *params, EmergeParams *emerge) | |
~MapgenSinglenode ()=default | |
virtual MapgenType | getType () const |
void | makeChunk (BlockMakeData *data) |
int | getSpawnLevelAtPoint (v2s16 p) |
Public Member Functions inherited from Mapgen | |
Mapgen ()=default | |
Mapgen (int mapgenid, MapgenParams *params, EmergeParams *emerge) | |
virtual | ~Mapgen () |
DISABLE_CLASS_COPY (Mapgen) | |
s16 | findGroundLevel (v2s16 p2d, s16 ymin, s16 ymax) |
s16 | findLiquidSurface (v2s16 p2d, s16 ymin, s16 ymax) |
void | updateHeightmap (v3s16 nmin, v3s16 nmax) |
void | getSurfaces (v2s16 p2d, s16 ymin, s16 ymax, std::vector< s16 > &floors, std::vector< s16 > &ceilings) |
void | updateLiquid (UniqueQueue< v3s16 > *trans_liquid, v3s16 nmin, v3s16 nmax) |
void | setLighting (u8 light, v3s16 nmin, v3s16 nmax) |
Set light in entire area to fixed value. | |
void | calcLighting (v3s16 nmin, v3s16 nmax, v3s16 full_nmin, v3s16 full_nmax, bool propagate_shadow=true) |
Run all lighting calculations. | |
void | propagateSunlight (v3s16 nmin, v3s16 nmax, bool propagate_shadow) |
Spread sunlight from the area above downwards. | |
void | spreadLight (const v3s16 &nmin, const v3s16 &nmax) |
Spread light in the given area. | |
virtual int | getGroundLevelAtPoint (v2s16 p) |
Public Attributes | |
content_t | c_node |
u8 | set_light |
Public Attributes inherited from Mapgen | |
s32 | seed = 0 |
int | water_level = 0 |
int | mapgen_limit = 0 |
u32 | flags = 0 |
bool | generating = false |
int | id = -1 |
MMVManip * | vm = nullptr |
EmergeParams * | m_emerge = nullptr |
const NodeDefManager * | ndef = nullptr |
u32 | blockseed |
s16 * | heightmap = nullptr |
biome_t * | biomemap = nullptr |
v3s16 | csize |
BiomeGen * | biomegen = nullptr |
GenerateNotifier | gennotify |
Additional Inherited Members | |
Static Public Member Functions inherited from Mapgen | |
static u32 | getBlockSeed (v3s16 p, s32 seed) |
static u32 | getBlockSeed2 (v3s16 p, s32 seed) |
static MapgenType | getMapgenType (const std::string &mgname) |
static const char * | getMapgenName (MapgenType mgtype) |
static Mapgen * | createMapgen (MapgenType mgtype, MapgenParams *params, EmergeParams *emerge) |
static MapgenParams * | createMapgenParams (MapgenType mgtype) |
static void | getMapgenNames (std::vector< const char * > *mgnames, bool include_hidden) |
static void | setDefaultSettings (Settings *settings) |
MapgenSinglenode::MapgenSinglenode | ( | MapgenParams * | params, |
EmergeParams * | emerge ) |
References c_node, CONTENT_AIR, CONTENT_IGNORE, NodeDefManager::getId(), NodeDefManager::getLightingFlags(), LIGHT_SUN, Mapgen::ndef, set_light, and ContentLightingFlags::sunlight_propagates.
|
default |
|
inlinevirtual |
Reimplemented from Mapgen.
References MAPGEN_SINGLENODE.
|
virtual |
Reimplemented from Mapgen.
References BlockMakeData::blockpos_max, BlockMakeData::blockpos_min, Mapgen::blockseed, c_node, CONTENT_IGNORE, Mapgen::flags, Mapgen::generating, NodeDefManager::get(), Mapgen::getBlockSeed2(), MapNode::getContent(), VoxelArea::index(), ContentFeatures::isLiquid(), LIGHT_SUN, VoxelManipulator::m_area, VoxelManipulator::m_data, MAP_BLOCKSIZE, MG_LIGHT, Mapgen::ndef, BlockMakeData::nodedef, BlockMakeData::seed, set_light, Mapgen::setLighting(), BlockMakeData::transforming_liquid, Mapgen::updateLiquid(), Mapgen::vm, and BlockMakeData::vmanip.
content_t MapgenSinglenode::c_node |
Referenced by MapgenSinglenode(), and makeChunk().
u8 MapgenSinglenode::set_light |
Referenced by MapgenSinglenode(), and makeChunk().