#include <mg_schematic.h>
Public Member Functions | |
SchematicManager (Server *server) | |
virtual | ~SchematicManager ()=default |
SchematicManager * | clone () 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 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 Schematic * | create (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 | |
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 |
SchematicManager::SchematicManager | ( | Server * | server | ) |
|
virtualdefault |
|
inlineprivate |
|
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().
SchematicManager * SchematicManager::clone | ( | ) | const |
References SchematicManager(), and ObjDefManager::cloneTo().
|
inlinestatic |
Referenced by load_schematic(), and load_schematic_from_def().
|
inlinevirtual |
Reimplemented from ObjDefManager.