Minetest 5.9.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)
 
InventorygetInventory (const InventoryLocation &loc) override
 
void setInventoryModified (const InventoryLocation &loc) override
 
- Public Member Functions inherited from ServerInventoryManager
 ServerInventoryManager ()
 
virtual ~ServerInventoryManager ()=default
 
void setEnv (ServerEnvironment *env)
 
virtual InventorygetInventory (const InventoryLocation &loc)
 
virtual void setInventoryModified (const InventoryLocation &loc)
 
InventorycreateDetachedInventory (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 &peer_name, bool incremental, std::function< void(const std::string &, Inventory *)> apply_cb)
 
- Public Member Functions inherited from InventoryManager
 InventoryManager ()=default
 
virtual ~InventoryManager ()=default
 
virtual InventorygetInventory (const InventoryLocation &loc)
 
virtual void setInventoryModified (const InventoryLocation &loc)
 
virtual void inventoryAction (InventoryAction *a)
 

Public Attributes

Inventory p1
 
Inventory p2
 

Additional Inherited Members

- Protected Attributes inherited from ServerInventoryManager
ServerEnvironmentm_env = nullptr
 
std::unordered_map< std::string, DetachedInventorym_detached_inventories
 

Constructor & Destructor Documentation

◆ MockInventoryManager()

MockInventoryManager::MockInventoryManager ( IGameDef gamedef)
inline

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: