#include <mg_decoration.h>
Public Member Functions | |
DecorationManager (IGameDef *gamedef) | |
virtual | ~DecorationManager ()=default |
DecorationManager * | clone () const |
const char * | getObjectTitle () const |
size_t | placeAllDecos (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 void | clear () |
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 Decoration * | create (DecorationType 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 | |
DecorationManager () | |
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 |
DecorationManager::DecorationManager | ( | IGameDef * | gamedef | ) |
|
virtualdefault |
|
inlineprivate |
DecorationManager * DecorationManager::clone | ( | ) | const |
References DecorationManager(), and ObjDefManager::cloneTo().
|
inlinestatic |
References DECO_LSYSTEM, DECO_SCHEMATIC, and DECO_SIMPLE.
Referenced by ModApiMapgen::l_register_decoration().
|
inlinevirtual |
Reimplemented from ObjDefManager.
References ObjDefManager::m_objects, and Decoration::placeDeco().
Referenced by ModApiMapgen::l_generate_decorations(), MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV6::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().