Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
SchematicManager Class Reference

#include <mg_schematic.h>

+ Inheritance diagram for SchematicManager:
+ Collaboration diagram for SchematicManager:

Public Member Functions

 SchematicManager (Server *server)
 
virtual ~SchematicManager ()=default
 
SchematicManagerclone () const
 
virtual void clear ()
 
const char * getObjectTitle () const
 
- 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 Schematiccreate (SchematicType 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

 SchematicManager ()
 

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

◆ SchematicManager() [1/2]

SchematicManager::SchematicManager ( Server * server)

◆ ~SchematicManager()

virtual SchematicManager::~SchematicManager ( )
virtualdefault

◆ SchematicManager() [2/2]

SchematicManager::SchematicManager ( )
inlineprivate

Referenced by clone().

+ Here is the caller graph for this function:

Member Function Documentation

◆ clear()

void SchematicManager::clear ( )
virtual

Reimplemented from ObjDefManager.

References ObjDefManager::clear(), Server::getEmergeManager(), ObjDefManager::getNumObjects(), ObjDefManager::getRaw(), EmergeManager::getWritableDecorationManager(), m_server, and DecoSchematic::schematic.

Referenced by ModApiMapgen::l_clear_registered_schematics().

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

◆ clone()

SchematicManager * SchematicManager::clone ( ) const

References SchematicManager(), and ObjDefManager::cloneTo().

+ Here is the call graph for this function:

◆ create()

static Schematic * SchematicManager::create ( SchematicType type)
inlinestatic

Referenced by load_schematic(), and load_schematic_from_def().

+ Here is the caller graph for this function:

◆ getObjectTitle()

const char * SchematicManager::getObjectTitle ( ) const
inlinevirtual

Reimplemented from ObjDefManager.

Member Data Documentation

◆ m_server

Server* SchematicManager::m_server
private

Referenced by clear().


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