diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-03 21:20:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-03 21:20:31 +0300 |
commit | cb573ac24373a908ff549c35c3a80dd31b2fdea5 (patch) | |
tree | e63d24c33a760fc6d408a09900fc1e02dc603c00 /src/net | |
parent | a1bd0179b28fa93c771bc5602f64746878f0ffad (diff) | |
download | manaverse-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.gz manaverse-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.bz2 manaverse-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.xz manaverse-cb573ac24373a908ff549c35c3a80dd31b2fdea5.zip |
add drag and drop support between inventory and storage.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/inventoryhandler.h | 3 | ||||
-rw-r--r-- | src/net/inventoryhandler.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h index 2497d9dd5..b21ba2fbc 100644 --- a/src/net/ea/inventoryhandler.h +++ b/src/net/ea/inventoryhandler.h @@ -201,6 +201,9 @@ class InventoryHandler : public Net::InventoryHandler void processPlayerArrowEquip(Net::MessageIn &msg); + Inventory *getStorage() const + { return mStorage; } + protected: EquipBackend mEquips; InventoryItems mInventoryItems; diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h index 97a88ca04..a8443d691 100644 --- a/src/net/inventoryhandler.h +++ b/src/net/inventoryhandler.h @@ -65,6 +65,8 @@ class InventoryHandler virtual size_t getSize(const int type) const A_WARN_UNUSED = 0; + virtual Inventory *getStorage() const = 0; + virtual int convertFromServerSlot(const int eAthenaSlot) const = 0; }; |