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 () | |
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 |
TestGameDef::TestGameDef | ( | ) |
|
default |
void TestGameDef::defineSomeNodes | ( | ) |
References ContentFeatures::alpha, ALPHAMODE_BLEND, ALPHAMODE_OPAQUE, CPT_LIGHT, ItemDefinition::description, ContentFeatures::groups, ItemDefinition::groups, IGameDef::idef(), ItemDefinition::inventory_image, ContentFeatures::is_ground_content, ITEM_NODE, LIGHT_MAX, ContentFeatures::light_propagates, ContentFeatures::light_source, LIQUID_SOURCE, ContentFeatures::liquid_type, ContentFeatures::liquid_viscosity, DummyGameDef::m_itemdef, DummyGameDef::m_nodedef, ContentFeatures::name, ItemDefinition::name, TileDef::name, IGameDef::ndef(), ContentFeatures::param_type, NodeDefManager::set(), ContentFeatures::sunlight_propagates, t_CONTENT_BRICK, t_CONTENT_GRASS, t_CONTENT_LAVA, t_CONTENT_STONE, t_CONTENT_TORCH, t_CONTENT_WATER, ContentFeatures::tiledef, and ItemDefinition::type.
Referenced by TestGameDef().
|
inlinevirtual |
Reimplemented from DummyGameDef.
References ModChannelMgr::getModChannel(), and m_modchannel_mgr.
|
virtual |
Reimplemented from DummyGameDef.
References ModChannelMgr::joinChannel(), m_modchannel_mgr, and PEER_ID_SERVER.
|
virtual |
Reimplemented from DummyGameDef.
References ModChannelMgr::leaveChannel(), m_modchannel_mgr, and PEER_ID_SERVER.
|
virtual |
Reimplemented from DummyGameDef.
References ModChannelMgr::channelRegistered(), and m_modchannel_mgr.
|
private |
Referenced by getModChannel(), joinModChannel(), leaveModChannel(), and sendModChannelMessage().