Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
BiomeManager Class Reference

#include <mg_biome.h>

+ Inheritance diagram for BiomeManager:
+ Collaboration diagram for BiomeManager:

Public Member Functions

 BiomeManager (Server *server)
 
virtual ~BiomeManager ()=default
 
BiomeManagerclone () const
 
const char * getObjectTitle () const
 
BiomeGencreateBiomeGen (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 ObjDefgetByName (const std::string &name) const
 
virtual ObjDefHandle add (ObjDef *obj)
 
virtual ObjDefget (ObjDefHandle handle) const
 
virtual ObjDefset (ObjDefHandle handle, ObjDef *obj)
 
virtual u32 addRaw (ObjDef *obj)
 
virtual ObjDefgetRaw (u32 index) const
 
virtual ObjDefsetRaw (u32 index, ObjDef *obj)
 
size_t getNumObjects () const
 
ObjDefType getType () const
 
const NodeDefManagergetNodeDef () const
 
u32 validateHandle (ObjDefHandle handle) const
 

Static Public Member Functions

static Biomecreate (BiomeType type)
 
static BiomeParamscreateBiomeParams (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

Serverm_server
 

Additional Inherited Members

- Protected Member Functions inherited from ObjDefManager
 ObjDefManager ()
 
void cloneTo (ObjDefManager *mgr) const
 
- Protected Attributes inherited from ObjDefManager
const NodeDefManagerm_ndef
 
std::vector< ObjDef * > m_objects
 
ObjDefType m_objtype
 

Constructor & Destructor Documentation

◆ BiomeManager() [1/2]

◆ ~BiomeManager()

virtual BiomeManager::~BiomeManager ( )
virtualdefault

◆ BiomeManager() [2/2]

BiomeManager::BiomeManager ( )
inlineprivate

Referenced by clone().

+ Here is the caller graph for this function:

Member Function Documentation

◆ clear()

void BiomeManager::clear ( )
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().

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

◆ clone()

BiomeManager * BiomeManager::clone ( ) const

References BiomeManager(), ObjDefManager::cloneTo(), and m_server.

+ Here is the call graph for this function:

◆ create()

static Biome * BiomeManager::create ( BiomeType type)
inlinestatic

Referenced by read_biome_def().

+ Here is the caller graph for this function:

◆ createBiomeGen()

BiomeGen * BiomeManager::createBiomeGen ( BiomeGenType type,
BiomeParams * params,
v3s16 chunksize )
inline

References BIOMEGEN_ORIGINAL.

Referenced by EmergeManager::initMapgens().

+ Here is the caller graph for this function:

◆ createBiomeParams()

static BiomeParams * BiomeManager::createBiomeParams ( BiomeGenType type)
inlinestatic

References BIOMEGEN_ORIGINAL.

Referenced by MapgenParams::readParams().

+ Here is the caller graph for this function:

◆ getObjectTitle()

const char * BiomeManager::getObjectTitle ( ) const
inlinevirtual

Reimplemented from ObjDefManager.

Member Data Documentation

◆ m_server

Server* BiomeManager::m_server
private

Referenced by BiomeManager(), clear(), and clone().


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