diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-14 22:42:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-14 22:42:47 +0300 |
commit | 26b43e7164214e8c9e5cdb8842a79a4fcc1493da (patch) | |
tree | 250a4f432ed66dee5a821eab15855cd194b18433 /src/net/tmwa | |
parent | 21d0f7cd7b0d8474f1043ae4f283a58ea6d8b352 (diff) | |
download | manaverse-26b43e7164214e8c9e5cdb8842a79a4fcc1493da.tar.gz manaverse-26b43e7164214e8c9e5cdb8842a79a4fcc1493da.tar.bz2 manaverse-26b43e7164214e8c9e5cdb8842a79a4fcc1493da.tar.xz manaverse-26b43e7164214e8c9e5cdb8842a79a4fcc1493da.zip |
Add ability for insert cards into items.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/inventoryhandler.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index 6097f515d..5ff9325ae 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -240,7 +240,7 @@ void InventoryHandler::moveItem2(const int source, const int slot, } } -void InventoryHandler::useCard(const int index A_UNUSED) const +void InventoryHandler::useCard(const Item *const item A_UNUSED) { } diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h index 5a8056538..bf6badc48 100644 --- a/src/net/tmwa/inventoryhandler.h +++ b/src/net/tmwa/inventoryhandler.h @@ -58,7 +58,7 @@ class InventoryHandler final : public MessageHandler, const int amount, const int destination) const override final; - void useCard(const int index) const override final; + void useCard(const Item *const item) override final; void insertCard(const int cardIndex, const int itemIndex) const override final; @@ -74,6 +74,9 @@ class InventoryHandler final : public MessageHandler, int getProjectileSlot() const override final { return 10; } + int getItemIndex() const override final A_WARN_UNUSED + { return 0; } + protected: static void processPlayerEquipment(Net::MessageIn &msg); |