#include <mg_ore.h>
Public Member Functions | |
OreManager (IGameDef *gamedef) | |
virtual | ~OreManager ()=default |
OreManager * | clone () const |
const char * | getObjectTitle () const |
void | clear () |
size_t | placeAllOres (Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax) |
Public Member Functions inherited from ObjDefManager | |
ObjDefManager (IGameDef *gamedef, ObjDefType type) | |
virtual | ~ObjDefManager () |
DISABLE_CLASS_COPY (ObjDefManager) | |
virtual ObjDef * | getByName (const std::string &name) const |
virtual ObjDefHandle | add (ObjDef *obj) |
virtual ObjDef * | get (ObjDefHandle handle) const |
virtual ObjDef * | set (ObjDefHandle handle, ObjDef *obj) |
virtual u32 | addRaw (ObjDef *obj) |
virtual ObjDef * | getRaw (u32 index) const |
virtual ObjDef * | setRaw (u32 index, ObjDef *obj) |
size_t | getNumObjects () const |
ObjDefType | getType () const |
const NodeDefManager * | getNodeDef () const |
u32 | validateHandle (ObjDefHandle handle) const |
Static Public Member Functions | |
static Ore * | create (OreType type) |
Static Public Member Functions inherited from ObjDefManager | |
static ObjDefHandle | createHandle (u32 index, ObjDefType type, u32 uid) |
static bool | decodeHandle (ObjDefHandle handle, u32 *index, ObjDefType *type, u32 *uid) |
Private Member Functions | |
OreManager () | |
Additional Inherited Members | |
Protected Member Functions inherited from ObjDefManager | |
ObjDefManager () | |
void | cloneTo (ObjDefManager *mgr) const |
Protected Attributes inherited from ObjDefManager | |
const NodeDefManager * | m_ndef |
std::vector< ObjDef * > | m_objects |
ObjDefType | m_objtype |
OreManager::OreManager | ( | IGameDef * | gamedef | ) |
|
virtualdefault |
|
inlineprivate |
|
virtual |
Reimplemented from ObjDefManager.
References ObjDefManager::m_objects.
Referenced by ModApiMapgen::l_clear_registered_ores().
OreManager * OreManager::clone | ( | ) | const |
References ORE_BLOB, ORE_PUFF, ORE_SCATTER, ORE_SHEET, ORE_STRATUM, and ORE_VEIN.
Referenced by ModApiMapgen::l_register_ore().
|
inlinevirtual |
Reimplemented from ObjDefManager.
References ObjDefManager::m_objects, and Ore::placeOre().
Referenced by ModApiMapgen::l_generate_ores(), MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV6::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().