Luanti 5.16.0-dev
Loading...
Searching...
No Matches
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, and stoi.

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, and craft_inv.

Member Data Documentation

◆ count

u16 ICraftAction::count = 0

◆ craft_inv


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