#include <rollback_interface.h>
◆ Type
Enumerator |
---|
TYPE_NOTHING | |
TYPE_SET_NODE | |
TYPE_MODIFY_INVENTORY_STACK | |
◆ RollbackAction()
RollbackAction::RollbackAction |
( |
| ) |
|
|
default |
◆ applyRevert()
References InventoryList::addItem(), Map::addNodeWithEvent(), CONTENT_IGNORE, ItemStack::count, InventoryLocation::deSerialize(), NodeMetadata::deSerialize(), Map::dispatchEvent(), Map::emergeBlock(), errorstream, NodeDefManager::get(), IItemDefManager::getAlias(), getContainerPos(), NodeDefManager::getId(), InventoryManager::getInventory(), InventoryList::getItem(), Inventory::getList(), Map::getNode(), Map::getNodeMetadata(), InventoryList::getSize(), IGameDef::idef(), infostream, inventory_add, inventory_index, inventory_list, inventory_location, inventory_stack, MAP_BLOCKSIZE, MEET_BLOCK_NODE_METADATA_CHANGED, RollbackNode::meta, n_new, n_old, ContentFeatures::name, ItemStack::name, RollbackNode::name, IGameDef::ndef(), p, RollbackNode::param1, RollbackNode::param2, Map::removeNodeMetadata(), InventoryManager::setInventoryModified(), Map::setNodeMetadata(), InventoryList::takeItem(), MapEditEvent::type, type, TYPE_MODIFY_INVENTORY_STACK, TYPE_NOTHING, TYPE_SET_NODE, and BaseException::what().
◆ getPosition()
bool RollbackAction::getPosition |
( |
v3s16 * | dst | ) |
const |
◆ isImportant()
bool RollbackAction::isImportant |
( |
IGameDef * | gamedef | ) |
const |
◆ setModifyInventoryStack()
void RollbackAction::setModifyInventoryStack |
( |
const std::string & | inventory_location_, |
|
|
const std::string & | inventory_list_, |
|
|
u32 | index_, |
|
|
bool | add_, |
|
|
const ItemStack & | inventory_stack_ ) |
|
inline |
◆ setSetNode()
◆ toString()
std::string RollbackAction::toString |
( |
| ) |
const |
References ItemStack::getItemString(), inventory_add, inventory_index, inventory_list, inventory_location, inventory_stack, itos(), RollbackNode::meta, n_new, n_old, RollbackNode::name, p, RollbackNode::param1, RollbackNode::param2, serializeJsonString(), type, TYPE_MODIFY_INVENTORY_STACK, and TYPE_SET_NODE.
◆ actor
std::string RollbackAction::actor |
◆ actor_is_guess
bool RollbackAction::actor_is_guess = false |
◆ inventory_add
bool RollbackAction::inventory_add |
◆ inventory_index
u32 RollbackAction::inventory_index |
◆ inventory_list
std::string RollbackAction::inventory_list |
◆ inventory_location
std::string RollbackAction::inventory_location |
◆ inventory_stack
◆ n_new
◆ n_old
◆ type
◆ unix_time
time_t RollbackAction::unix_time = 0 |
The documentation for this struct was generated from the following files: