summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-25 02:55:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-25 02:55:51 +0300
commit1ad3e55c431b61e6fe6638ee0afc5e8f4c14496c (patch)
treec198baa8b7c57b2a4b118e6d740961a126d0e528 /src/net/tmwa
parent290ae8ba45bb706f32da15978459022e633aa626 (diff)
downloadmanaverse-1ad3e55c431b61e6fe6638ee0afc5e8f4c14496c.tar.gz
manaverse-1ad3e55c431b61e6fe6638ee0afc5e8f4c14496c.tar.bz2
manaverse-1ad3e55c431b61e6fe6638ee0afc5e8f4c14496c.tar.xz
manaverse-1ad3e55c431b61e6fe6638ee0afc5e8f4c14496c.zip
Allow buy more than one item at vending shop at once.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/vendinghandler.cpp6
-rw-r--r--src/net/tmwa/vendinghandler.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/net/tmwa/vendinghandler.cpp b/src/net/tmwa/vendinghandler.cpp
index b2da37855..6bddd659f 100644
--- a/src/net/tmwa/vendinghandler.cpp
+++ b/src/net/tmwa/vendinghandler.cpp
@@ -46,6 +46,12 @@ void VendingHandler::buy(const Being *const being A_UNUSED,
{
}
+void VendingHandler::buyItems(const Being *const being A_UNUSED,
+ const std::vector<ShopItem*> &items A_UNUSED)
+ const
+{
+}
+
void VendingHandler::buy2(const Being *const being A_UNUSED,
const int vendId A_UNUSED,
const int index A_UNUSED,
diff --git a/src/net/tmwa/vendinghandler.h b/src/net/tmwa/vendinghandler.h
index 47a99c7b4..d8023fb1c 100644
--- a/src/net/tmwa/vendinghandler.h
+++ b/src/net/tmwa/vendinghandler.h
@@ -41,6 +41,10 @@ class VendingHandler final : public Net::VendingHandler
const int index,
const int amount) const override final A_CONST;
+ void buyItems(const Being *const being,
+ const std::vector<ShopItem*> &items) const
+ override final A_CONST;
+
void buy2(const Being *const being,
const int vendId,
const int index,