#include <mg_ore.h>
Public Member Functions | |
Ore (bool needs_noise) | |
virtual | ~Ore () |
virtual void | resolveNodeNames () |
size_t | placeOre (Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax) |
virtual void | generate (MMVManip *vm, int mapseed, u32 blockseed, v3s16 nmin, v3s16 nmax, biome_t *biomemap)=0 |
Public Member Functions inherited from ObjDef | |
virtual | ~ObjDef ()=default |
virtual ObjDef * | clone () const =0 |
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 | |
const bool | needs_noise |
content_t | c_ore |
std::vector< content_t > | c_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 |
Noise * | noise = nullptr |
std::unordered_set< biome_t > | biomes |
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 |
Protected Member Functions | |
void | cloneTo (Ore *def) const |
Protected Member Functions inherited from ObjDef | |
void | cloneTo (ObjDef *def) const |
Additional Inherited Members | |
Protected Attributes inherited from NodeResolver | |
const NodeDefManager * | m_ndef = nullptr |
u32 | m_nodenames_idx = 0 |
|
inlineexplicit |
|
virtual |
References noise.
|
protected |
References biomes, c_ore, c_wherein, NodeResolver::cloneTo(), ObjDef::cloneTo(), clust_num_ores, clust_scarcity, clust_size, flags, noise, np, nthresh, ore_param2, y_max, and y_min.
Referenced by OreBlob::clone(), OrePuff::clone(), OreScatter::clone(), OreSheet::clone(), OreStratum::clone(), and OreVein::clone().
|
pure virtual |
Implemented in OreBlob, OrePuff, OreScatter, OreSheet, OreStratum, and OreVein.
Referenced by placeOre().
References Mapgen::biomemap, clust_size, generate(), MYMAX, MYMIN, Mapgen::seed, Mapgen::vm, y_max, and y_min.
Referenced by OreManager::placeAllOres().
|
virtual |
Implements NodeResolver.
References c_ore, c_wherein, CONTENT_AIR, NodeResolver::getIdFromNrBacklog(), and NodeResolver::getIdsFromNrBacklog().
std::unordered_set<biome_t> Ore::biomes |
content_t Ore::c_ore |
std::vector<content_t> Ore::c_wherein |
s16 Ore::clust_num_ores |
Referenced by cloneTo(), and OreScatter::generate().
u32 Ore::clust_scarcity |
Referenced by cloneTo(), OreBlob::generate(), OreScatter::generate(), and OreStratum::generate().
s16 Ore::clust_size |
Referenced by cloneTo(), OreBlob::generate(), OreScatter::generate(), and placeOre().
u32 Ore::flags = 0 |
Referenced by cloneTo(), OrePuff::generate(), OreScatter::generate(), and OreStratum::generate().
const bool Ore::needs_noise |
Noise* Ore::noise = nullptr |
Referenced by ~Ore(), cloneTo(), OreBlob::generate(), OrePuff::generate(), OreSheet::generate(), OreStratum::generate(), and OreVein::generate().
NoiseParams Ore::np |
float Ore::nthresh |
Referenced by cloneTo(), OreBlob::generate(), OrePuff::generate(), OreScatter::generate(), OreSheet::generate(), and OreVein::generate().
u8 Ore::ore_param2 |
s16 Ore::y_max |
Referenced by cloneTo(), and placeOre().
s16 Ore::y_min |
Referenced by cloneTo(), and placeOre().