#include <serverinventorymgr.h>
◆ ServerInventoryManager()
ServerInventoryManager::ServerInventoryManager |
( |
| ) |
|
◆ ~ServerInventoryManager()
ServerInventoryManager::~ServerInventoryManager |
( |
| ) |
|
|
virtual |
◆ createDetachedInventory()
Inventory * ServerInventoryManager::createDetachedInventory |
( |
const std::string & |
name, |
|
|
IItemDefManager * |
idef, |
|
|
const std::string & |
player = "" |
|
) |
| |
◆ getInventory()
Reimplemented from InventoryManager.
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.
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 InvRef::reportInventoryChange().
◆ m_detached_inventories
std::unordered_map<std::string, DetachedInventory> ServerInventoryManager::m_detached_inventories |
|
private |
◆ m_env
The documentation for this class was generated from the following files: