Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
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 ()
 
virtual ModIPCStoregetModIPCStore ()
 
IItemDefManageridef ()
 
const NodeDefManagerndef ()
 
ICraftDefManagercdef ()
 
IRollbackManagerrollback ()
 
virtual const std::vector< ModSpec > & getMods () const =0
 
virtual const ModSpecgetModSpec (const std::string &modname) const =0
 
virtual const SubgameSpecgetGameSpec () const
 
virtual std::string getWorldPath () const
 
virtual std::string getModDataPath () const
 
virtual ModStorageDatabasegetModStorageDatabase ()=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, DummyGameDef, and Server.

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

+ Here is the caller graph for this function:

◆ cdef()

ICraftDefManager * IGameDef::cdef ( )
inline

References getCraftDefManager().

Referenced by ModApiCraft::l_get_all_craft_recipes(), ModApiCraft::l_get_craft_recipe(), and 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, DummyGameDef, and Server.

Referenced by cdef(), getCraftingResult(), TestCraft::getDumpedCraftResult(), and TestCraft::testShapeless().

+ Here is the caller graph for this function:

◆ getGameSpec()

virtual const SubgameSpec * IGameDef::getGameSpec ( ) const
inlinevirtual

Reimplemented in Server.

Referenced by ModApiServer::l_get_game_info().

+ Here is the caller graph for this function:

◆ getItemDefManager()

virtual IItemDefManager * IGameDef::getItemDefManager ( )
pure virtual

Implemented in Client, DummyGameDef, and Server.

Referenced by ICraftAction::apply(), craftGetItems(), getCraftingResult(), idef(), TestCraft::registerItemWithGroups(), TestInventory::runTests(), and TestCraft::testShapeless().

+ Here is the caller graph for this function:

◆ getModChannel()

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

Implemented in Client, DummyGameDef, Server, and TestGameDef.

Referenced by ModChannelRef::getobject().

+ Here is the caller graph for this function:

◆ getModDataPath()

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

Reimplemented in Server.

◆ getModIPCStore()

virtual ModIPCStore * IGameDef::getModIPCStore ( )
inlinevirtual

Reimplemented in Server.

Referenced by ModApiIPC::l_ipc_cas(), ModApiIPC::l_ipc_get(), ModApiIPC::l_ipc_poll(), and ModApiIPC::l_ipc_set().

+ Here is the caller graph for this function:

◆ getMods()

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

Implemented in Client, DummyGameDef, and Server.

Referenced by ModApiServer::l_get_modnames().

+ Here is the caller graph for this function:

◆ getModSpec()

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

Implemented in Client, DummyGameDef, and Server.

Referenced by ModApiServer::l_get_modpath().

+ Here is the caller graph for this function:

◆ getModStorageDatabase()

virtual ModStorageDatabase * IGameDef::getModStorageDatabase ( )
pure virtual

Implemented in Client, DummyGameDef, and Server.

◆ getNodeDefManager()

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

◆ getRollbackManager()

virtual IRollbackManager * IGameDef::getRollbackManager ( )
inlinevirtual

Reimplemented in Server.

Referenced by rollback().

+ Here is the caller graph for this function:

◆ getWorldPath()

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

Reimplemented in Server.

◆ idef()

◆ joinModChannel()

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

Implemented in Client, DummyGameDef, Server, and TestGameDef.

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, DummyGameDef, Server, and TestGameDef.

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(), RollbackNode::RollbackNode(), SmokePuffCSO::SmokePuffCSO(), LBMContentMapping::addLBM(), Map::addNodeAndUpdate(), RollbackAction::applyRevert(), ModApiMapgen::calc_lighting(), correctBlockNodeIds(), TestGameDef::defineSomeNodes(), MapBlock::deSerialize_pre22(), MeshUpdateQueue::fillDataFromMapBlocks(), ServerEnvironment::findSunlight(), LocalPlayer::getSlipFactor(), LocalPlayer::handleAutojump(), ParticleManager::handleParticleEvent(), RollbackAction::isImportant(), ModApiEnvVM::l_find_node_near(), ModApiEnvVM::l_find_nodes_in_area(), ModApiEnvVM::l_find_nodes_in_area_under_air(), ModApiItem::l_get_content_id(), ModApiItem::l_get_name_from_content_id(), ModApiClient::l_get_node_def(), ModApiMapgen::l_read_schematic(), ModApiEnvVM::l_spawn_tree(), 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(), ServerEnvironment::removeNode(), MapBlock::serialize(), Map::setNode(), ServerEnvironment::setNode(), ParticleSpawner::spawnParticle(), ClientEnvironment::step(), GenericCAO::step(), PlayerSAO::step(), TestVoxelAlgorithms::testLighting(), Camera::update(), ModApiMapgen::update_liquids(), GenericCAO::updateLight(), Particle::updateLight(), and LocalPlayer::updateSneakNode().

+ Here is the call graph for this function:

◆ rollback()

IRollbackManager * IGameDef::rollback ( )
inline

References getRollbackManager().

Referenced by Map::addNodeAndUpdate(), IDropAction::apply(), IMoveAction::apply(), Server::handleCommand_NodeMetaFields(), and ServerMap::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, DummyGameDef, Server, and TestGameDef.

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

+ Here is the caller graph for this function:

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