summaryrefslogtreecommitdiff
path: root/src/playerinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-23 12:21:55 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-23 17:36:25 +0300
commit4c57a567eec8b3df0b0009b5520d647cccb83338 (patch)
tree6677639ab67b1209532d20d0ebffa52e4227cdc8 /src/playerinfo.h
parenta685e41954590525f5a9f215dbd37a286ae2bd37 (diff)
downloadplus-4c57a567eec8b3df0b0009b5520d647cccb83338.tar.gz
plus-4c57a567eec8b3df0b0009b5520d647cccb83338.tar.bz2
plus-4c57a567eec8b3df0b0009b5520d647cccb83338.tar.xz
plus-4c57a567eec8b3df0b0009b5520d647cccb83338.zip
Add support for protecting items.
Protected item cant be selled, traded, dropped, used. Protect/unprotect item can be from context menu.
Diffstat (limited to 'src/playerinfo.h')
-rw-r--r--src/playerinfo.h8
1 files changed, 8 insertions, 0 deletions
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