Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
inventorymanager.h File Reference
#include "irr_v3d.h"
#include <iostream>
#include <string>
#include <vector>
+ Include dependency graph for inventorymanager.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  InventoryLocation
 
class  InventoryManager
 
struct  InventoryAction
 
struct  MoveAction
 
struct  IMoveAction
 
struct  IDropAction
 
struct  ICraftAction
 

Enumerations

enum class  IAction : u16 { Move , Drop , Craft }
 

Functions

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

Enumeration Type Documentation

◆ IAction

enum class IAction : u16
strong
Enumerator
Move 
Drop 
Craft 

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: