Luanti 5.10.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)
 
ModChannelgetModChannel (const std::string &channel)
 
- Public Member Functions inherited from DummyGameDef
 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
 
- 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
 

Private Attributes

std::unique_ptr< ModChannelMgrm_modchannel_mgr
 

Additional Inherited Members

- Protected Attributes inherited from DummyGameDef
IItemDefManagerm_itemdef = nullptr
 
NodeDefManagerm_nodedef = nullptr
 
ICraftDefManagerm_craftdef = nullptr
 
ModStorageDatabasem_mod_storage_database = nullptr
 

Constructor & Destructor Documentation

◆ TestGameDef()

TestGameDef::TestGameDef ( )

References defineSomeNodes().

+ 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 ModChannelMgr::getModChannel(), and m_modchannel_mgr.

+ Here is the call graph for this function:

◆ joinModChannel()

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

Reimplemented from DummyGameDef.

References ModChannelMgr::joinChannel(), m_modchannel_mgr, and PEER_ID_SERVER.

+ Here is the call graph for this function:

◆ leaveModChannel()

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

Reimplemented from DummyGameDef.

References ModChannelMgr::leaveChannel(), m_modchannel_mgr, and PEER_ID_SERVER.

+ Here is the call graph for this function:

◆ sendModChannelMessage()

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

Reimplemented from DummyGameDef.

References ModChannelMgr::channelRegistered(), and m_modchannel_mgr.

+ Here is the call graph for this function:

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: