Minetest  5.4.0
IGameDef Class Referenceabstract

#include <gamedef.h>

+ Inheritance diagram for IGameDef:

Public Member Functions

virtual IItemDefManagergetItemDefManager ()=0
 
virtual const NodeDefManagergetNodeDefManager ()=0
 
virtual ICraftDefManagergetCraftDefManager ()=0
 
virtual u16 allocateUnknownNodeId (const std::string &name)=0
 
virtual IRollbackManagergetRollbackManager ()
 
IItemDefManageridef ()
 
const NodeDefManagerndef ()
 
ICraftDefManagercdef ()
 
IRollbackManagerrollback ()
 
virtual const std::vector< ModSpec > & getMods () const =0
 
virtual const ModSpecgetModSpec (const std::string &modname) const =0
 
virtual std::string getWorldPath () const
 
virtual std::string getModStoragePath () const =0
 
virtual bool registerModStorage (ModMetadata *storage)=0
 
virtual void unregisterModStorage (const std::string &name)=0
 
virtual bool joinModChannel (const std::string &channel)=0
 
virtual bool leaveModChannel (const std::string &channel)=0
 
virtual bool sendModChannelMessage (const std::string &channel, const std::string &message)=0
 
virtual ModChannelgetModChannel (const std::string &channel)=0
 

Member Function Documentation

◆ allocateUnknownNodeId()

virtual u16 IGameDef::allocateUnknownNodeId ( const std::string &  name)
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by LBMContentMapping::addLBM(), and correctBlockNodeIds().

+ Here is the caller graph for this function:

◆ cdef()

ICraftDefManager* IGameDef::cdef ( )
inline

References getCraftDefManager().

Referenced by ModApiCraft::l_get_craft_result().

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

◆ getCraftDefManager()

virtual ICraftDefManager* IGameDef::getCraftDefManager ( )
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by cdef(), and getCraftingResult().

+ Here is the caller graph for this function:

◆ getItemDefManager()

virtual IItemDefManager* IGameDef::getItemDefManager ( )
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by ICraftAction::apply(), craftGetItems(), getCraftingResult(), idef(), ModApiItemMod::l_get_content_id(), and TestInventory::runTests().

+ Here is the caller graph for this function:

◆ getModChannel()

virtual ModChannel* IGameDef::getModChannel ( const std::string &  channel)
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by ModChannelRef::getobject().

+ Here is the caller graph for this function:

◆ getMods()

virtual const std::vector<ModSpec>& IGameDef::getMods ( ) const
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by ScriptApiSecurity::checkPath().

+ Here is the caller graph for this function:

◆ getModSpec()

virtual const ModSpec* IGameDef::getModSpec ( const std::string &  modname) const
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by ScriptApiSecurity::checkPath().

+ Here is the caller graph for this function:

◆ getModStoragePath()

virtual std::string IGameDef::getModStoragePath ( ) const
pure virtual

Implemented in Client, TestGameDef, and Server.

◆ getNodeDefManager()

virtual const NodeDefManager* IGameDef::getNodeDefManager ( )
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by ObjDefManager::ObjDefManager(), collisionMoveSimple(), ModApiItemMod::l_get_content_id(), ModApiItemMod::l_get_name_from_content_id(), ndef(), TestMapNode::runTests(), TestNodeResolver::runTests(), TestSchematic::runTests(), TestVoxelAlgorithms::runTests(), and TestVoxelManipulator::runTests().

+ Here is the caller graph for this function:

◆ getRollbackManager()

virtual IRollbackManager* IGameDef::getRollbackManager ( )
inlinevirtual

Reimplemented in TestGameDef, and Server.

Referenced by rollback().

+ Here is the caller graph for this function:

◆ getWorldPath()

virtual std::string IGameDef::getWorldPath ( ) const
inlinevirtual

Reimplemented in Server.

Referenced by ScriptApiSecurity::checkPath().

+ Here is the caller graph for this function:

◆ idef()

◆ joinModChannel()

virtual bool IGameDef::joinModChannel ( const std::string &  channel)
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by ModApiChannels::l_mod_channel_join(), TestModChannels::testJoinChannel(), TestModChannels::testLeaveChannel(), and TestModChannels::testSendMessageToChannel().

+ Here is the caller graph for this function:

◆ leaveModChannel()

virtual bool IGameDef::leaveModChannel ( const std::string &  channel)
pure virtual

Implemented in Client, TestGameDef, and Server.

Referenced by ModChannelRef::l_leave(), and TestModChannels::testLeaveChannel().

+ Here is the caller graph for this function:

◆ ndef()

const NodeDefManager* IGameDef::ndef ( )
inline

References getNodeDefManager().

Referenced by ABMHandler::ABMHandler(), MapblockMeshGenerator::MapblockMeshGenerator(), RollbackNode::RollbackNode(), SmokePuffCSO::SmokePuffCSO(), MapBlock::actuallyUpdateDayNightDiff(), LBMContentMapping::addLBM(), RollbackAction::applyRevert(), collisionMoveSimple(), correctBlockNodeIds(), TestGameDef::defineSomeNodes(), MapBlock::deSerialize_pre22(), ServerEnvironment::findSunlight(), MapBlock::getGroundLevel(), getNodeTile(), getNodeTileN(), LocalPlayer::getSlipFactor(), getSmoothLightCombined(), getTileInfo(), LocalPlayer::handleAutojump(), ParticleManager::handleParticleEvent(), RollbackAction::isImportant(), ModApiClient::l_get_node_def(), LocalPlayer::move(), ScriptApiNode::node_after_destruct(), ScriptApiNode::node_on_construct(), ScriptApiNode::node_on_destruct(), ScriptApiNode::node_on_dig(), ScriptApiNode::node_on_flood(), ScriptApiNode::node_on_punch(), ScriptApiNode::node_on_receive_fields(), ScriptApiNode::node_on_timer(), ScriptApiNodemeta::nodemeta_inventory_AllowMove(), ScriptApiNodemeta::nodemeta_inventory_AllowPut(), ScriptApiNodemeta::nodemeta_inventory_AllowTake(), ScriptApiNodemeta::nodemeta_inventory_OnMove(), ScriptApiNodemeta::nodemeta_inventory_OnPut(), ScriptApiNodemeta::nodemeta_inventory_OnTake(), LocalPlayer::old_move(), ScriptApiClient::on_dignode(), ScriptApiClient::on_punchnode(), ServerEnvironment::removeNode(), MapBlock::serialize(), ServerEnvironment::setNode(), ParticleSpawner::spawnParticle(), ClientEnvironment::step(), PlayerSAO::step(), GenericCAO::step(), LuaLBM::trigger(), LuaABM::trigger(), Camera::update(), Particle::updateLight(), GenericCAO::updateLight(), and LocalPlayer::updateSneakNode().

+ Here is the call graph for this function:

◆ registerModStorage()

virtual bool IGameDef::registerModStorage ( ModMetadata storage)
pure virtual

Implemented in Server, Client, and TestGameDef.

◆ rollback()

IRollbackManager* IGameDef::rollback ( )
inline

References getRollbackManager().

Referenced by Map::addNodeAndUpdate(), IMoveAction::apply(), IDropAction::apply(), Server::handleCommand_NodeMetaFields(), and Map::transformLiquids().

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

◆ sendModChannelMessage()

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

Implemented in Client, TestGameDef, and Server.

Referenced by ModChannelRef::l_send_all(), and TestModChannels::testSendMessageToChannel().

+ Here is the caller graph for this function:

◆ unregisterModStorage()

virtual void IGameDef::unregisterModStorage ( const std::string &  name)
pure virtual

Implemented in Client, TestGameDef, and Server.


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