Luanti 5.19.0-dev
Loading...
Searching...
No Matches
MockInventoryManager Class Reference

#include <mock_inventorymanager.h>

Inheritance diagram for MockInventoryManager:
Collaboration diagram for MockInventoryManager:

Public Member Functions

 MockInventoryManager (IGameDef &gamedef)
Inventory * getInventory (const InventoryLocation &loc) override
void setInventoryModified (const InventoryLocation &loc) override
Public Member Functions inherited from ServerInventoryManager
 ServerInventoryManager ()
virtual ~ServerInventoryManager ()=default
void setEnv (ServerEnvironment *env)
Inventory * createDetachedInventory (const std::string &name, IItemDefManager *idef, const std::string &player="")
bool removeDetachedInventory (const std::string &name)
bool checkDetachedInventoryAccess (const InventoryLocation &loc, const std::string &player) const
void sendDetachedInventories (const std::string &filter_owner, bool incremental, const SendCallbackFn &apply_cb)
Public Member Functions inherited from InventoryManager
 InventoryManager ()=default
virtual ~InventoryManager ()=default
virtual void inventoryAction (InventoryAction *a)

Public Attributes

Inventory p1
Inventory p2

Additional Inherited Members

Public Types inherited from ServerInventoryManager
using SendCallbackFn = std::function<void(const std::string&, Inventory*, const std::string &)>
Protected Attributes inherited from ServerInventoryManager
ServerEnvironment * m_env = nullptr
std::unordered_map< std::string, DetachedInventory > m_detached_inventories

Constructor & Destructor Documentation

◆ MockInventoryManager()

MockInventoryManager::MockInventoryManager ( IGameDef & gamedef)
inline

References p1, and p2.

Member Function Documentation

◆ getInventory()

Inventory * MockInventoryManager::getInventory ( const InventoryLocation & loc)
inlineoverridevirtual

◆ setInventoryModified()

void MockInventoryManager::setInventoryModified ( const InventoryLocation & loc)
inlineoverridevirtual

Reimplemented from ServerInventoryManager.

Member Data Documentation

◆ p1

◆ p2


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