Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
inventorymanager.cpp File Reference
#include "inventorymanager.h"
#include "debug.h"
#include "log.h"
#include "serverenvironment.h"
#include "scripting_server.h"
#include "server/serveractiveobject.h"
#include "settings.h"
#include "craftdef.h"
#include "rollback_interface.h"
#include "util/strfnd.h"
#include "util/basic_macros.h"
#include "inventory.h"
+ Include dependency graph for inventorymanager.cpp:

Macros

#define PLAYER_TO_SA(p)   p->getEnv()->getScriptIface()
 

Functions

bool getCraftingResult (Inventory *inv, ItemStack &result, std::vector< ItemStack > &output_replacements, bool decrementInput, IGameDef *gamedef)
 

Macro Definition Documentation

◆ PLAYER_TO_SA

Function Documentation

◆ getCraftingResult()

bool getCraftingResult ( Inventory * inv,
ItemStack & result,
std::vector< ItemStack > & output_replacements,
bool decrementInput,
IGameDef * gamedef )

References InventoryList::changeItem(), ItemStack::clear(), CRAFT_METHOD_NORMAL, ItemStack::deSerialize(), IGameDef::getCraftDefManager(), ICraftDefManager::getCraftResult(), InventoryList::getItem(), IGameDef::getItemDefManager(), Inventory::getList(), InventoryList::getSize(), InventoryList::getWidth(), CraftOutput::item, CraftInput::items, CraftInput::method, and CraftInput::width.

Referenced by ICraftAction::apply(), and Server::UpdateCrafting().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: