#include <serverinventorymgr.h>
◆ ServerInventoryManager()
ServerInventoryManager::ServerInventoryManager |
( |
| ) |
|
◆ ~ServerInventoryManager()
virtual ServerInventoryManager::~ServerInventoryManager |
( |
| ) |
|
|
virtualdefault |
◆ checkDetachedInventoryAccess()
bool ServerInventoryManager::checkDetachedInventoryAccess |
( |
const InventoryLocation & | loc, |
|
|
const std::string & | player ) const |
◆ createDetachedInventory()
Inventory * ServerInventoryManager::createDetachedInventory |
( |
const std::string & | name, |
|
|
IItemDefManager * | idef, |
|
|
const std::string & | player = "" ) |
◆ getInventory()
Reimplemented from InventoryManager.
Reimplemented in MockInventoryManager.
References InventoryLocation::CURRENT_PLAYER, InventoryLocation::DETACHED, NodeMetadata::getInventory(), PlayerSAO::getInventory(), ServerEnvironment::getMap(), Map::getNodeMetadata(), ServerEnvironment::getPlayer(), RemotePlayer::getPlayerSAO(), m_detached_inventories, m_env, InventoryLocation::name, InventoryLocation::NODEMETA, InventoryLocation::p, InventoryLocation::PLAYER, sanity_check, InventoryLocation::type, and InventoryLocation::UNDEFINED.
Referenced by InvRef::getinv().
◆ removeDetachedInventory()
bool ServerInventoryManager::removeDetachedInventory |
( |
const std::string & | name | ) |
|
◆ sendDetachedInventories()
void ServerInventoryManager::sendDetachedInventories |
( |
const std::string & | peer_name, |
|
|
bool | incremental, |
|
|
std::function< void(const std::string &, Inventory *)> | apply_cb ) |
◆ setEnv()
◆ setInventoryModified()
Reimplemented from InventoryManager.
Reimplemented in MockInventoryManager.
References InventoryLocation::DETACHED, Map::dispatchEvent(), ServerEnvironment::getMap(), ServerEnvironment::getPlayer(), Player::inventory, m_env, MEET_BLOCK_NODE_METADATA_CHANGED, InventoryLocation::name, InventoryLocation::NODEMETA, InventoryLocation::p, InventoryLocation::PLAYER, sanity_check, Inventory::setModified(), RemotePlayer::setModified(), InventoryLocation::type, MapEditEvent::type, and InventoryLocation::UNDEFINED.
Referenced by Server::handleCommand_InventoryAction(), and InvRef::reportInventoryChange().
◆ m_detached_inventories
std::unordered_map<std::string, DetachedInventory> ServerInventoryManager::m_detached_inventories |
|
protected |
◆ m_env
The documentation for this class was generated from the following files: