Luanti 5.10.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

u32 flags
 
content_t c_top
 
content_t c_filler
 
content_t c_stone
 
content_t c_water_top
 
content_t c_water
 
content_t c_river_water
 
content_t c_riverbed
 
content_t c_dust
 
std::vector< content_tc_cave_liquid
 
content_t c_dungeon
 
content_t c_dungeon_alt
 
content_t c_dungeon_stair
 
s16 depth_top
 
s16 depth_filler
 
s16 depth_water_top
 
s16 depth_riverbed
 
v3s16 min_pos
 
v3s16 max_pos
 
float heat_point
 
float humidity_point
 
s16 vertical_blend
 
- 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, flags, heat_point, humidity_point, max_pos, min_pos, and vertical_blend.

+ 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

content_t Biome::c_dungeon_alt

◆ c_dungeon_stair

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

◆ flags

u32 Biome::flags

◆ heat_point

◆ humidity_point

◆ max_pos

◆ min_pos

◆ vertical_blend


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