#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"
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) |
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().