#include <inventorymanager.h>
Public Types | |
| enum | Type { UNDEFINED , CURRENT_PLAYER , PLAYER , NODEMETA , DETACHED } |
Public Member Functions | |
| InventoryLocation () | |
| void | setUndefined () |
| void | setCurrentPlayer () |
| void | setPlayer (const std::string &name_) |
| void | setNodeMeta (const v3s16 &p_) |
| void | setDetached (const std::string &name_) |
| bool | operator== (const InventoryLocation &other) const |
| bool | operator!= (const InventoryLocation &other) const |
| void | applyCurrentPlayer (const std::string &name_) |
| std::string | dump () const |
| void | serialize (std::ostream &os) const |
| void | deSerialize (std::istream &is) |
| void | deSerialize (const std::string &s) |
Public Attributes | |
| enum InventoryLocation::Type | type |
| std::string | name |
| v3s16 | p |
|
inline |
References setUndefined().
Referenced by operator!=(), and operator==().
|
inline |
References CURRENT_PLAYER, setPlayer(), and type.
Referenced by Server::handleCommand_InventoryAction().
| void InventoryLocation::deSerialize | ( | const std::string & | s | ) |
| void InventoryLocation::deSerialize | ( | std::istream & | is | ) |
References CURRENT_PLAYER, DETACHED, infostream, name, BasicStrfnd< T >::next(), NODEMETA, p, PLAYER, stoi, type, and UNDEFINED.
Referenced by RollbackAction::applyRevert(), deSerialize(), RollbackAction::getPosition(), GUIFormSpecMenu::parseList(), and GUIFormSpecMenu::parseListRing().
| std::string InventoryLocation::dump | ( | ) | const |
References serialize().
Referenced by Server::handleCommand_InventoryAction(), and GUIFormSpecMenu::OnEvent().
|
inline |
|
inline |
References InventoryLocation(), CURRENT_PLAYER, DETACHED, name, NODEMETA, p, PLAYER, type, and UNDEFINED.
| void InventoryLocation::serialize | ( | std::ostream & | os | ) | const |
References CURRENT_PLAYER, DETACHED, FATAL_ERROR, name, NODEMETA, p, PLAYER, type, and UNDEFINED.
Referenced by dump().
|
inline |
References CURRENT_PLAYER, and type.
Referenced by IDropAction::clientApply(), IMoveAction::clientApply(), Game::dropSelectedItem(), and GameFormSpec::showPlayerInventory().
|
inline |
References DETACHED, name, and type.
Referenced by ModApiInventory::l_create_detached_inventory_raw(), and ModApiInventory::l_get_inventory().
|
inline |
References NODEMETA, p, and type.
Referenced by ModApiInventory::l_get_inventory(), NodeMetaRef::l_get_inventory(), and GameFormSpec::showNodeFormspec().
|
inline |
References name, PLAYER, and type.
Referenced by applyCurrentPlayer(), PlayerSAO::getInventoryLocation(), ModApiInventory::l_get_inventory(), and Server::UpdateCrafting().
|
inline |
References type, and UNDEFINED.
Referenced by InventoryLocation().
| std::string InventoryLocation::name |
Referenced by ServerInventoryManager::checkDetachedInventoryAccess(), deSerialize(), ScriptApiDetached::detached_inventory_AllowMove(), ScriptApiDetached::detached_inventory_AllowPut(), ScriptApiDetached::detached_inventory_AllowTake(), ScriptApiDetached::detached_inventory_OnMove(), ScriptApiDetached::detached_inventory_OnPut(), ScriptApiDetached::detached_inventory_OnTake(), MockInventoryManager::getInventory(), ServerInventoryManager::getInventory(), Server::handleCommand_InventoryAction(), Client::inventoryAction(), InvRef::l_get_location(), operator==(), serialize(), setDetached(), ServerInventoryManager::setInventoryModified(), and setPlayer().
| v3s16 InventoryLocation::p |
Referenced by deSerialize(), ServerInventoryManager::getInventory(), RollbackAction::getPosition(), Server::handleCommand_InventoryAction(), InvRef::l_get_location(), ScriptApiNodemeta::nodemeta_inventory_AllowMove(), ScriptApiNodemeta::nodemeta_inventory_AllowPut(), ScriptApiNodemeta::nodemeta_inventory_AllowTake(), ScriptApiNodemeta::nodemeta_inventory_OnMove(), ScriptApiNodemeta::nodemeta_inventory_OnPut(), ScriptApiNodemeta::nodemeta_inventory_OnTake(), operator==(), serialize(), ServerInventoryManager::setInventoryModified(), and setNodeMeta().
| enum InventoryLocation::Type InventoryLocation::type |
Referenced by applyCurrentPlayer(), ServerInventoryManager::checkDetachedInventoryAccess(), deSerialize(), MockInventoryManager::getInventory(), ServerInventoryManager::getInventory(), RollbackAction::getPosition(), Server::handleCommand_InventoryAction(), InvRef::l_get_location(), operator==(), serialize(), setCurrentPlayer(), setDetached(), ServerInventoryManager::setInventoryModified(), setNodeMeta(), setPlayer(), and setUndefined().