Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
CraftInput Struct Reference

#include <craftdef.h>

+ Collaboration diagram for CraftInput:

Public Member Functions

 CraftInput ()=default
 
 CraftInput (CraftMethod method_, unsigned int width_, const std::vector< ItemStack > &items_)
 
bool empty () const
 
std::string dump () const
 

Public Attributes

CraftMethod method = CRAFT_METHOD_NORMAL
 
unsigned int width = 0
 
std::vector< ItemStackitems
 

Constructor & Destructor Documentation

◆ CraftInput() [1/2]

CraftInput::CraftInput ( )
default

◆ CraftInput() [2/2]

CraftInput::CraftInput ( CraftMethod method_,
unsigned int width_,
const std::vector< ItemStack > & items_ )
inline

Member Function Documentation

◆ dump()

std::string CraftInput::dump ( ) const

References craftDumpMatrix(), items, method, and width.

+ Here is the call graph for this function:

◆ empty()

bool CraftInput::empty ( ) const

References items.

Referenced by CCraftDefManager::clearCraftsByInput(), and CCraftDefManager::getCraftResult().

+ Here is the caller graph for this function:

Member Data Documentation

◆ items

◆ method

◆ width

unsigned int CraftInput::width = 0

The documentation for this struct was generated from the following files: