Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
MapgenSinglenode Class Reference

#include <mapgen_singlenode.h>

+ Inheritance diagram for MapgenSinglenode:
+ Collaboration diagram for MapgenSinglenode:

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
 
MMVManipvm = nullptr
 
EmergeParamsm_emerge = nullptr
 
const NodeDefManagerndef = nullptr
 
u32 blockseed
 
s16 * heightmap = nullptr
 
biome_tbiomemap = nullptr
 
v3s16 csize
 
BiomeGenbiomegen = 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 MapgencreateMapgen (MapgenType mgtype, MapgenParams *params, EmergeParams *emerge)
 
static MapgenParamscreateMapgenParams (MapgenType mgtype)
 
static void getMapgenNames (std::vector< const char * > *mgnames, bool include_hidden)
 
static void setDefaultSettings (Settings *settings)
 

Constructor & Destructor Documentation

◆ MapgenSinglenode()

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.

+ Here is the call graph for this function:

◆ ~MapgenSinglenode()

MapgenSinglenode::~MapgenSinglenode ( )
default

Member Function Documentation

◆ getSpawnLevelAtPoint()

int MapgenSinglenode::getSpawnLevelAtPoint ( v2s16 p)
virtual

Reimplemented from Mapgen.

◆ getType()

virtual MapgenType MapgenSinglenode::getType ( ) const
inlinevirtual

Reimplemented from Mapgen.

References MAPGEN_SINGLENODE.

◆ makeChunk()

Member Data Documentation

◆ c_node

content_t MapgenSinglenode::c_node

Referenced by MapgenSinglenode(), and makeChunk().

◆ set_light

u8 MapgenSinglenode::set_light

Referenced by MapgenSinglenode(), and makeChunk().


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