From 4c57a567eec8b3df0b0009b5520d647cccb83338 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 23 Jun 2013 12:21:55 +0300 Subject: Add support for protecting items. Protected item cant be selled, traded, dropped, used. Protect/unprotect item can be from context menu. --- src/playerinfo.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/playerinfo.h') diff --git a/src/playerinfo.h b/src/playerinfo.h index 7eac4ef98..6a1a25f81 100644 --- a/src/playerinfo.h +++ b/src/playerinfo.h @@ -235,6 +235,8 @@ namespace PlayerInfo void deinit(); + void loadData(); + bool isTalking(); void gameDestroyed(); @@ -252,6 +254,12 @@ namespace PlayerInfo void setEquipmentBackend(Equipment::Backend *const backend); + void protectItem(const int id); + + void unprotectItem(const int id); + + bool isItemProtected(const int id); + } // namespace PlayerInfo #endif // PLAYERINFO_H -- cgit v1.2.3-60-g2f50