73 const std::string &inventory_list_, u32 index_,
74 bool add_,
const ItemStack &inventory_stack_)
102 virtual void setActor(
const std::string &actor,
bool is_guess) = 0;
104 float min_nearness) = 0;
111 time_t seconds,
int limit) = 0;
122 const std::string & actor,
bool is_guess =
false) :
Definition rollback_interface.h:97
virtual void setActor(const std::string &actor, bool is_guess)=0
virtual std::string getActor()=0
virtual void reportAction(const RollbackAction &action)=0
virtual std::string getSuspect(v3s16 p, float nearness_shortcut, float min_nearness)=0
virtual ~IRollbackManager()=default
virtual std::list< RollbackAction > getRevertActions(const std::string &actor, time_t seconds)=0
virtual bool isActorGuess()=0
virtual std::list< RollbackAction > getNodeActors(v3s16 pos, int range, time_t seconds, int limit)=0
Definition inventorymanager.h:96
Definition rollback_interface.h:119
RollbackScopeActor(IRollbackManager *rollback_, const std::string &actor, bool is_guess=false)
Definition rollback_interface.h:121
std::string old_actor
Definition rollback_interface.h:140
~RollbackScopeActor()
Definition rollback_interface.h:131
IRollbackManager * rollback
Definition rollback_interface.h:139
bool old_actor_guess
Definition rollback_interface.h:141
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
Definition inventory.h:19
Definition rollback_interface.h:40
bool applyRevert(Map *map, InventoryManager *imgr, IGameDef *gamedef) const
Definition rollback_interface.cpp:111
void setSetNode(v3s16 p_, const RollbackNode &n_old_, const RollbackNode &n_new_)
Definition rollback_interface.h:63
std::string inventory_location
Definition rollback_interface.h:55
std::string actor
Definition rollback_interface.h:48
bool getPosition(v3s16 *dst) const
Definition rollback_interface.cpp:91
bool inventory_add
Definition rollback_interface.h:58
RollbackNode n_new
Definition rollback_interface.h:53
Type
Definition rollback_interface.h:41
@ TYPE_MODIFY_INVENTORY_STACK
Definition rollback_interface.h:44
@ TYPE_SET_NODE
Definition rollback_interface.h:43
@ TYPE_NOTHING
Definition rollback_interface.h:42
std::string inventory_list
Definition rollback_interface.h:56
bool isImportant(IGameDef *gamedef) const
Definition rollback_interface.cpp:70
RollbackNode n_old
Definition rollback_interface.h:52
u32 inventory_index
Definition rollback_interface.h:57
std::string toString() const
Definition rollback_interface.cpp:38
time_t unix_time
Definition rollback_interface.h:47
bool actor_is_guess
Definition rollback_interface.h:49
enum RollbackAction::Type type
v3s16 p
Definition rollback_interface.h:51
void setModifyInventoryStack(const std::string &inventory_location_, const std::string &inventory_list_, u32 index_, bool add_, const ItemStack &inventory_stack_)
Definition rollback_interface.h:72
ItemStack inventory_stack
Definition rollback_interface.h:59
Definition rollback_interface.h:20
bool operator!=(const RollbackNode &other)
Definition rollback_interface.h:31
int param2
Definition rollback_interface.h:23
std::string meta
Definition rollback_interface.h:24
bool operator==(const RollbackNode &other)
Definition rollback_interface.h:26
std::string name
Definition rollback_interface.h:21
int param1
Definition rollback_interface.h:22
static std::string p(std::string path)
Definition test_filesys.cpp:53