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

#include <dummygamedef.h>

+ Inheritance diagram for DummyGameDef:
+ Collaboration diagram for DummyGameDef:

Public Member Functions

 DummyGameDef ()
 
 ~DummyGameDef ()
 
IItemDefManagergetItemDefManager () override
 
const NodeDefManagergetNodeDefManager () override
 
NodeDefManagergetWritableNodeDefManager ()
 
ICraftDefManagergetCraftDefManager () override
 
u16 allocateUnknownNodeId (const std::string &name) override
 
const std::vector< ModSpec > & getMods () const override
 
const ModSpecgetModSpec (const std::string &modname) const override
 
ModStorageDatabasegetModStorageDatabase () override
 
bool joinModChannel (const std::string &channel) override
 
bool leaveModChannel (const std::string &channel) override
 
bool sendModChannelMessage (const std::string &channel, const std::string &message) override
 
ModChannelgetModChannel (const std::string &channel) override
 
- Public Member Functions inherited from IGameDef
virtual IRollbackManagergetRollbackManager ()
 
virtual ModIPCStoregetModIPCStore ()
 
IItemDefManageridef ()
 
const NodeDefManagerndef ()
 
ICraftDefManagercdef ()
 
IRollbackManagerrollback ()
 
virtual const SubgameSpecgetGameSpec () const
 
virtual std::string getWorldPath () const
 
virtual std::string getModDataPath () const
 

Protected Attributes

IItemDefManagerm_itemdef = nullptr
 
NodeDefManagerm_nodedef = nullptr
 
ICraftDefManagerm_craftdef = nullptr
 
ModStorageDatabasem_mod_storage_database = nullptr
 

Constructor & Destructor Documentation

◆ DummyGameDef()

DummyGameDef::DummyGameDef ( )
inline

◆ ~DummyGameDef()

DummyGameDef::~DummyGameDef ( )
inline

Member Function Documentation

◆ allocateUnknownNodeId()

u16 DummyGameDef::allocateUnknownNodeId ( const std::string & name)
inlineoverridevirtual

Implements IGameDef.

References NodeDefManager::allocateDummy(), and m_nodedef.

+ Here is the call graph for this function:

◆ getCraftDefManager()

ICraftDefManager * DummyGameDef::getCraftDefManager ( )
inlineoverridevirtual

Implements IGameDef.

References m_craftdef.

◆ getItemDefManager()

IItemDefManager * DummyGameDef::getItemDefManager ( )
inlineoverridevirtual

Implements IGameDef.

References m_itemdef.

◆ getModChannel()

ModChannel * DummyGameDef::getModChannel ( const std::string & channel)
inlineoverridevirtual

Implements IGameDef.

Reimplemented in TestGameDef.

◆ getMods()

const std::vector< ModSpec > & DummyGameDef::getMods ( ) const
inlineoverridevirtual

Implements IGameDef.

◆ getModSpec()

const ModSpec * DummyGameDef::getModSpec ( const std::string & modname) const
inlineoverridevirtual

Implements IGameDef.

◆ getModStorageDatabase()

ModStorageDatabase * DummyGameDef::getModStorageDatabase ( )
inlineoverridevirtual

Implements IGameDef.

References m_mod_storage_database.

◆ getNodeDefManager()

const NodeDefManager * DummyGameDef::getNodeDefManager ( )
inlineoverridevirtual

Implements IGameDef.

References m_nodedef.

◆ getWritableNodeDefManager()

NodeDefManager * DummyGameDef::getWritableNodeDefManager ( )
inline

References m_nodedef.

Referenced by TEST_CASE().

+ Here is the caller graph for this function:

◆ joinModChannel()

bool DummyGameDef::joinModChannel ( const std::string & channel)
inlineoverridevirtual

Implements IGameDef.

Reimplemented in TestGameDef.

◆ leaveModChannel()

bool DummyGameDef::leaveModChannel ( const std::string & channel)
inlineoverridevirtual

Implements IGameDef.

Reimplemented in TestGameDef.

◆ sendModChannelMessage()

bool DummyGameDef::sendModChannelMessage ( const std::string & channel,
const std::string & message )
inlineoverridevirtual

Implements IGameDef.

Reimplemented in TestGameDef.

Member Data Documentation

◆ m_craftdef

ICraftDefManager* DummyGameDef::m_craftdef = nullptr
protected

◆ m_itemdef

IItemDefManager* DummyGameDef::m_itemdef = nullptr
protected

◆ m_mod_storage_database

ModStorageDatabase* DummyGameDef::m_mod_storage_database = nullptr
protected

◆ m_nodedef


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