#include <mg_biome.h>
Public Member Functions | |
BiomeManager (Server *server) | |
virtual | ~BiomeManager ()=default |
BiomeManager * | clone () const |
const char * | getObjectTitle () const |
BiomeGen * | createBiomeGen (BiomeGenType type, BiomeParams *params, v3s16 chunksize) |
virtual void | clear () |
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 Biome * | create (BiomeType type) |
static BiomeParams * | createBiomeParams (BiomeGenType 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 | |
BiomeManager () | |
Private Attributes | |
Server * | m_server |
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 |
BiomeManager::BiomeManager | ( | Server * | server | ) |
References ObjDefManager::add(), Biome::depth_filler, Biome::depth_riverbed, Biome::depth_top, Biome::depth_water_top, Biome::flags, Biome::heat_point, Biome::humidity_point, ObjDefManager::m_ndef, NodeResolver::m_nnlistsizes, NodeResolver::m_nodenames, m_server, MAX_MAP_GENERATION_LIMIT, Biome::max_pos, Biome::min_pos, ObjDef::name, NodeDefManager::pendNodeResolve(), Biome::vertical_blend, and Biome::weight.
|
virtualdefault |
|
inlineprivate |
|
virtual |
Reimplemented from ObjDefManager.
References Decoration::biomes, Server::getEmergeManager(), ObjDefManager::getNumObjects(), ObjDefManager::getRaw(), EmergeManager::getWritableDecorationManager(), ObjDefManager::m_objects, and m_server.
Referenced by ModApiMapgen::l_clear_registered_biomes().
BiomeManager * BiomeManager::clone | ( | ) | const |
References BiomeManager(), ObjDefManager::cloneTo(), and m_server.
|
inline |
References BIOMEGEN_ORIGINAL.
Referenced by EmergeManager::initMapgens().
|
inlinestatic |
References BIOMEGEN_ORIGINAL.
Referenced by MapgenParams::readParams().
|
inlinevirtual |
Reimplemented from ObjDefManager.
|
private |
Referenced by BiomeManager(), clear(), and clone().