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

#include <mg_ore.h>

Inheritance diagram for OreSheet:
Collaboration diagram for OreSheet:

Public Member Functions

 OreSheet ()
ObjDefclone () const override
void generate (MMVManip *vm, int mapseed, u32 blockseed, v3s16 nmin, v3s16 nmax, biome_t *biomemap) override
Public Member Functions inherited from Ore
 Ore (bool needs_noise)
virtual ~Ore ()
virtual void resolveNodeNames ()
size_t placeOre (Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
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

u16 column_height_min
u16 column_height_max
float column_midpoint_factor
Public Attributes inherited from Ore
const bool needs_noise
content_t c_ore
std::vector< content_tc_wherein
u32 clust_scarcity
s16 clust_num_ores
s16 clust_size
s16 y_min
s16 y_max
u8 ore_param2
u32 flags = 0
float nthresh
NoiseParams np
Noisenoise = nullptr
std::unordered_set< biome_tbiomes
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 Ore
void cloneTo (Ore *def) const
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

Constructor & Destructor Documentation

◆ OreSheet()

OreSheet::OreSheet ( )
inline

References Ore::Ore().

Referenced by clone().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ clone()

ObjDef * OreSheet::clone ( ) const
overridevirtual

Implements ObjDef.

References OreSheet(), Ore::cloneTo(), column_height_max, column_height_min, and column_midpoint_factor.

Here is the call graph for this function:

◆ generate()

void OreSheet::generate ( MMVManip * vm,
int mapseed,
u32 blockseed,
v3s16 nmin,
v3s16 nmax,
biome_t * biomemap )
overridevirtual

Implements Ore.

References Ore::biomes, Ore::c_ore, Ore::c_wherein, column_height_max, column_height_min, column_midpoint_factor, CONTAINS, VoxelArea::contains(), MapNode::getContent(), ObjDef::index, VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, MYMAX, MYMIN, Ore::noise, Ore::np, Ore::nthresh, Ore::ore_param2, PcgRandom::range(), x, y, and z.

Here is the call graph for this function:

Member Data Documentation

◆ column_height_max

u16 OreSheet::column_height_max

◆ column_height_min

u16 OreSheet::column_height_min

◆ column_midpoint_factor

float OreSheet::column_midpoint_factor

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