Luanti 5.18.0-dev
Loading...
Searching...
No Matches
MyObjDefManager Class Reference
Inheritance diagram for MyObjDefManager:
Collaboration diagram for MyObjDefManager:

Public Member Functions

 MyObjDefManager (ObjDefType type)
MyObjDefManager * clone () const
Public Member Functions inherited from ObjDefManager
 ObjDefManager (IGameDef *gamedef, ObjDefType type)
virtual ~ObjDefManager ()
 DISABLE_CLASS_COPY (ObjDefManager)
virtual const char * getObjectTitle () const
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

Protected Member Functions

 MyObjDefManager ()
Protected Member Functions inherited from ObjDefManager
 ObjDefManager ()
void cloneTo (ObjDefManager *mgr) const

Additional Inherited Members

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)
Protected Attributes inherited from ObjDefManager
const NodeDefManager * m_ndef
std::vector< ObjDef * > m_objects
ObjDefType m_objtype

Constructor & Destructor Documentation

◆ MyObjDefManager() [1/2]

MyObjDefManager::MyObjDefManager ( ObjDefType type)
inline

References ObjDefManager::ObjDefManager().

Referenced by clone().

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

◆ MyObjDefManager() [2/2]

MyObjDefManager::MyObjDefManager ( )
inlineprotected

Referenced by clone().

Here is the caller graph for this function:

Member Function Documentation

◆ clone()

MyObjDefManager * MyObjDefManager::clone ( ) const
inline

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

Referenced by TestObjDef::testClone().

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

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