diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-27 16:07:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-27 16:07:33 +0300 |
commit | f964252564162f70df2cda6b06b45245d0a383ad (patch) | |
tree | 7a7514d600d4a6f453477237deea3f6a52602cf2 /src/net/ea/inventoryhandler.h | |
parent | d1ed605d722ea17a9d5576bdb306b9f4680d646f (diff) | |
download | plus-f964252564162f70df2cda6b06b45245d0a383ad.tar.gz plus-f964252564162f70df2cda6b06b45245d0a383ad.tar.bz2 plus-f964252564162f70df2cda6b06b45245d0a383ad.tar.xz plus-f964252564162f70df2cda6b06b45245d0a383ad.zip |
Move receive code from inventoryhandler into separate file.
Diffstat (limited to 'src/net/ea/inventoryhandler.h')
-rw-r--r-- | src/net/ea/inventoryhandler.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h index 29d24a1ac..3883ab0d4 100644 --- a/src/net/ea/inventoryhandler.h +++ b/src/net/ea/inventoryhandler.h @@ -68,40 +68,16 @@ class InventoryHandler notfinal : public Net::InventoryHandler size_t getSize(const int type) const override final A_WARN_UNUSED; - void pushPickup(const BeingId floorId) - { mSentPickups.push(floorId); } - - static int getSlot(const int eAthenaSlot) A_WARN_UNUSED; + void pushPickup(const BeingId floorId); void destroyStorage() override final; void forgotStorage() override final; - Inventory *getStorage() const override final - { return mStorage; } + Inventory *getStorage() const override final; protected: InventoryHandler(); - - static void processPlayerInventoryRemove(Net::MessageIn &msg); - - static void processPlayerInventoryUse(Net::MessageIn &msg); - - static void processItemUseResponse(Net::MessageIn &msg); - - static void processPlayerStorageStatus(Net::MessageIn &msg); - - static void processPlayerStorageClose(Net::MessageIn &msg); - - static void processPlayerAttackRange(Net::MessageIn &msg); - - static void processPlayerArrowEquip(Net::MessageIn &msg); - - static EquipBackend mEquips; - static InventoryItems mInventoryItems; - static Inventory *mStorage; - static PickupQueue mSentPickups; - static bool mDebugInventory; }; } // namespace Ea |