diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-09 21:31:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-09 21:31:02 +0300 |
commit | 90705929b29445a4569ff5c9ad13b7efcb304e0a (patch) | |
tree | 0dae1643b0fb33131fb918fe3a1729e879379e26 /src/net/inventoryhandler.h | |
parent | b3fa7a53a29a1001935514a38f140af2b816771a (diff) | |
download | ManaVerse-90705929b29445a4569ff5c9ad13b7efcb304e0a.tar.gz ManaVerse-90705929b29445a4569ff5c9ad13b7efcb304e0a.tar.bz2 ManaVerse-90705929b29445a4569ff5c9ad13b7efcb304e0a.tar.xz ManaVerse-90705929b29445a4569ff5c9ad13b7efcb304e0a.zip |
Add different use actions for items.
Can be used from chat or from custom item menu from items.xml
Diffstat (limited to 'src/net/inventoryhandler.h')
-rw-r--r-- | src/net/inventoryhandler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h index a93837939..aaa4d6f67 100644 --- a/src/net/inventoryhandler.h +++ b/src/net/inventoryhandler.h @@ -51,6 +51,9 @@ class InventoryHandler notfinal virtual void useItem(const Item *const item) const = 0; + virtual void useItem(const Item *const item, + const int16_t useType) const = 0; + virtual void dropItem(const Item *const item, const int amount) const = 0; |