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

Public Member Functions

 TestGameDef ()
 ~TestGameDef ()=default
void defineSomeNodes ()
bool joinModChannel (const std::string &channel)
bool leaveModChannel (const std::string &channel)
bool sendModChannelMessage (const std::string &channel, const std::string &message)
ModChannel * getModChannel (const std::string &channel)
Public Member Functions inherited from DummyGameDef
 DummyGameDef ()
 ~DummyGameDef ()
bool isClient () override
IItemDefManager * getItemDefManager () override
const NodeDefManager * getNodeDefManager () override
NodeDefManager * getWritableNodeDefManager ()
ICraftDefManager * getCraftDefManager () override
u16 allocateUnknownNodeId (const std::string &name) override
const std::vector< ModSpec > & getMods () const override
const ModSpec * getModSpec (const std::string &modname) const override
ModStorageDatabase * getModStorageDatabase () override
Public Member Functions inherited from IGameDef
virtual IRollbackManager * getRollbackManager ()
virtual ModIPCStore * getModIPCStore ()
IItemDefManager * idef ()
const NodeDefManager * ndef ()
ICraftDefManager * cdef ()
IRollbackManager * rollback ()
virtual const SubgameSpec * getGameSpec () const
virtual std::string getWorldPath () const
virtual std::string getModDataPath () const

Private Attributes

std::unique_ptr< ModChannelMgr > m_modchannel_mgr

Additional Inherited Members

Protected Attributes inherited from DummyGameDef
IItemDefManager * m_itemdef = nullptr
NodeDefManager * m_nodedef = nullptr
ICraftDefManager * m_craftdef = nullptr
ModStorageDatabase * m_mod_storage_database = nullptr

Constructor & Destructor Documentation

◆ TestGameDef()

TestGameDef::TestGameDef ( )

References DummyGameDef::DummyGameDef(), defineSomeNodes(), and m_modchannel_mgr.

Here is the call graph for this function:

◆ ~TestGameDef()

TestGameDef::~TestGameDef ( )
default

Member Function Documentation

◆ defineSomeNodes()

◆ getModChannel()

ModChannel * TestGameDef::getModChannel ( const std::string & channel)
inlinevirtual

Reimplemented from DummyGameDef.

References m_modchannel_mgr.

◆ joinModChannel()

bool TestGameDef::joinModChannel ( const std::string & channel)
virtual

Reimplemented from DummyGameDef.

References m_modchannel_mgr, and PEER_ID_SERVER.

◆ leaveModChannel()

bool TestGameDef::leaveModChannel ( const std::string & channel)
virtual

Reimplemented from DummyGameDef.

References m_modchannel_mgr, and PEER_ID_SERVER.

◆ sendModChannelMessage()

bool TestGameDef::sendModChannelMessage ( const std::string & channel,
const std::string & message )
virtual

Reimplemented from DummyGameDef.

References m_modchannel_mgr.

Member Data Documentation

◆ m_modchannel_mgr

std::unique_ptr<ModChannelMgr> TestGameDef::m_modchannel_mgr
private

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