Luanti 5.16.0-dev
Loading...
Searching...
No Matches
Biome Class Reference

#include <mg_biome.h>

Inheritance diagram for Biome:
Collaboration diagram for Biome:

Public Member Functions

ObjDefclone () 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_tc_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 NodeDefManagerm_ndef = nullptr
u32 m_nodenames_idx = 0

Member Function Documentation

◆ clone()

ObjDef * Biome::clone ( ) const
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.

Here is the call graph for this function:

◆ resolveNodeNames()

void Biome::resolveNodeNames ( )
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().

Here is the call graph for this function:

Member Data Documentation

◆ c_cave_liquid

std::vector<content_t> Biome::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

◆ depth_filler

◆ depth_riverbed

◆ depth_top

◆ depth_water_top

s16 Biome::depth_water_top = 0

◆ heat_point

float Biome::heat_point = 0.0f

◆ humidity_point

float Biome::humidity_point = 0.0f

◆ max_pos

◆ min_pos

◆ vertical_blend

s16 Biome::vertical_blend = 0

◆ weight

float Biome::weight = 1.0f

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