#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 InventoryAction * | deSerialize (std::istream &is) |
|
default |
| ICraftAction::ICraftAction | ( | std::istream & | is | ) |
References count, craft_inv, InventoryLocation::deSerialize(), and stoi.
Here is the call graph for this function:
|
virtual |
Implements InventoryAction.
References actionstream, InventoryList::addItem(), count, ItemStack::count, craft_inv, InventoryLocation::dump(), ItemStack::empty(), errorstream, ServerActiveObject::getBasePosition(), getCraftingResult(), ServerActiveObject::getDescription(), InventoryManager::getInventory(), IGameDef::getItemDefManager(), ItemStack::getItemString(), Inventory::getList(), InventoryList::getSize(), infostream, InventoryList::itemFits(), PLAYER_TO_SA, InventoryList::resizeLock(), and InventoryManager::setInventoryModified().
Here is the call graph for this function:
|
virtual |
Implements InventoryAction.
|
inlinevirtual |
Implements InventoryAction.
References Craft.
|
inlinevirtual |
Implements InventoryAction.
References count, craft_inv, and InventoryLocation::dump().
Here is the call graph for this function:| u16 ICraftAction::count = 0 |
Referenced by ICraftAction(), apply(), GUIFormSpecMenu::OnEvent(), and serialize().
| InventoryLocation ICraftAction::craft_inv |
Referenced by ICraftAction(), apply(), Server::handleCommand_InventoryAction(), GUIFormSpecMenu::OnEvent(), and serialize().