Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
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.

Referenced by apply_action().

+ Here is the caller graph for this function:

◆ 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 apply_action(), and 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: