Minetest  5.4.0
InventoryAction Struct Referenceabstract

#include <inventorymanager.h>

+ Inheritance diagram for InventoryAction:

Public Member Functions

virtual IAction getType () const =0
 
virtual void serialize (std::ostream &os) const =0
 
virtual void apply (InventoryManager *mgr, ServerActiveObject *player, IGameDef *gamedef)=0
 
virtual void clientApply (InventoryManager *mgr, IGameDef *gamedef)=0
 
virtual ~InventoryAction ()=default
 

Static Public Member Functions

static InventoryActiondeSerialize (std::istream &is)
 

Constructor & Destructor Documentation

◆ ~InventoryAction()

virtual InventoryAction::~InventoryAction ( )
virtualdefault

Member Function Documentation

◆ apply()

virtual void InventoryAction::apply ( InventoryManager mgr,
ServerActiveObject player,
IGameDef gamedef 
)
pure virtual

Implemented in ICraftAction, IDropAction, and IMoveAction.

◆ clientApply()

virtual void InventoryAction::clientApply ( InventoryManager mgr,
IGameDef gamedef 
)
pure virtual

Implemented in ICraftAction, IDropAction, and IMoveAction.

Referenced by Client::inventoryAction().

+ Here is the caller graph for this function:

◆ deSerialize()

InventoryAction * InventoryAction::deSerialize ( std::istream &  is)
static

Referenced by Server::handleCommand_InventoryAction().

+ Here is the caller graph for this function:

◆ getType()

virtual IAction InventoryAction::getType ( ) const
pure virtual

Implemented in ICraftAction, IDropAction, and IMoveAction.

◆ serialize()

virtual void InventoryAction::serialize ( std::ostream &  os) const
pure virtual

Implemented in ICraftAction, IDropAction, and IMoveAction.

Referenced by Client::sendInventoryAction().

+ Here is the caller graph for this function:

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