Minetest  5.4.0
ICraftAction Struct Reference

#include <inventorymanager.h>

+ Inheritance diagram for ICraftAction:
+ Collaboration diagram for ICraftAction:

Public Member Functions

 ICraftAction ()=default
 
 ICraftAction (std::istream &is)
 
IAction getType () const
 
void serialize (std::ostream &os) const
 
void apply (InventoryManager *mgr, ServerActiveObject *player, IGameDef *gamedef)
 
void clientApply (InventoryManager *mgr, IGameDef *gamedef)
 
- Public Member Functions inherited from InventoryAction
virtual ~InventoryAction ()=default
 

Public Attributes

u16 count = 0
 
InventoryLocation craft_inv
 

Additional Inherited Members

- Static Public Member Functions inherited from InventoryAction
static InventoryActiondeSerialize (std::istream &is)
 

Constructor & Destructor Documentation

◆ ICraftAction() [1/2]

ICraftAction::ICraftAction ( )
default

◆ ICraftAction() [2/2]

ICraftAction::ICraftAction ( std::istream &  is)

References count, craft_inv, InventoryLocation::deSerialize(), and stoi.

+ Here is the call graph for this function:

Member Function Documentation

◆ apply()

◆ clientApply()

void ICraftAction::clientApply ( InventoryManager mgr,
IGameDef gamedef 
)
virtual

Implements InventoryAction.

◆ getType()

IAction ICraftAction::getType ( ) const
inlinevirtual

Implements InventoryAction.

References Craft.

◆ serialize()

void ICraftAction::serialize ( std::ostream &  os) const
inlinevirtual

Implements InventoryAction.

References count, craft_inv, and InventoryLocation::dump().

+ Here is the call graph for this function:

Member Data Documentation

◆ count

u16 ICraftAction::count = 0

◆ craft_inv


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