summaryrefslogtreecommitdiff
path: root/src/net/inventoryhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-14 22:42:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-14 22:42:47 +0300
commit26b43e7164214e8c9e5cdb8842a79a4fcc1493da (patch)
tree250a4f432ed66dee5a821eab15855cd194b18433 /src/net/inventoryhandler.h
parent21d0f7cd7b0d8474f1043ae4f283a58ea6d8b352 (diff)
downloadmanaverse-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/inventoryhandler.h')
-rw-r--r--src/net/inventoryhandler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h
index fc1365898..a151e39da 100644
--- a/src/net/inventoryhandler.h
+++ b/src/net/inventoryhandler.h
@@ -71,7 +71,7 @@ class InventoryHandler notfinal
virtual int convertFromServerSlot(const int eAthenaSlot) const = 0;
- virtual void useCard(const int index) const = 0;
+ virtual void useCard(const Item *const item) = 0;
virtual void insertCard(const int cardIndex,
const int itemIndex) const = 0;
@@ -82,6 +82,8 @@ class InventoryHandler notfinal
virtual void selectEgg(const Item *const item) const = 0;
virtual int getProjectileSlot() const = 0;
+
+ virtual int getItemIndex() const A_WARN_UNUSED = 0;
};
} // namespace Net