summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-29 13:10:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-29 13:10:31 +0300
commit5bf9a084a9d188105b919e984a655a5cf08bb497 (patch)
treeabad6bb8f33abcbd9cf40abc8d9afa6a3a51add0 /src/net
parent63a59b84a097af720138399f4b55ca726b74716e (diff)
downloadmanaplus-5bf9a084a9d188105b919e984a655a5cf08bb497.tar.gz
manaplus-5bf9a084a9d188105b919e984a655a5cf08bb497.tar.bz2
manaplus-5bf9a084a9d188105b919e984a655a5cf08bb497.tar.xz
manaplus-5bf9a084a9d188105b919e984a655a5cf08bb497.zip
eathena: add packet CMSG_NPC_CASH_SHOP_REQUEST_TAB 0x0846.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/cashshophandler.h2
-rw-r--r--src/net/eathena/cashshophandler.cpp6
-rw-r--r--src/net/eathena/cashshophandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/cashshophandler.cpp4
-rw-r--r--src/net/tmwa/cashshophandler.h2
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/cashshophandler.h b/src/net/cashshophandler.h
index 1972ab6e8..a0d09e5a4 100644
--- a/src/net/cashshophandler.h
+++ b/src/net/cashshophandler.h
@@ -44,6 +44,8 @@ class CashShopHandler notfinal
virtual void close() const = 0;
virtual void requestPoints() const = 0;
+
+ virtual void requestTab(const int tab) const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp
index 24751bfe0..e0eaa0dea 100644
--- a/src/net/eathena/cashshophandler.cpp
+++ b/src/net/eathena/cashshophandler.cpp
@@ -191,4 +191,10 @@ void CashShopHandler::requestPoints() const
createOutPacket(CMSG_NPC_CASH_SHOP_OPEN);
}
+void CashShopHandler::requestTab(const int tab) const
+{
+ createOutPacket(CMSG_NPC_CASH_SHOP_REQUEST_TAB);
+ outMsg.writeInt16(static_cast<int16_t>(tab), "tab");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h
index e25599028..dcd410e0f 100644
--- a/src/net/eathena/cashshophandler.h
+++ b/src/net/eathena/cashshophandler.h
@@ -50,6 +50,8 @@ class CashShopHandler final : public MessageHandler,
void requestPoints() const override final;
+ void requestTab(const int tab) const override final;
+
protected:
static void processCashShopOpen(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 1d8c1648a..152acc891 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -539,6 +539,7 @@
#define CMSG_NPC_CASH_SHOP_BUY 0x0288
#define CMSG_NPC_CASH_SHOP_CLOSE 0x084a
#define CMSG_NPC_CASH_SHOP_OPEN 0x0844
+#define CMSG_NPC_CASH_SHOP_REQUEST_TAB 0x0846
#define CMSG_TRADE_REQUEST 0x00e4
#define CMSG_TRADE_RESPONSE 0x00e6
diff --git a/src/net/tmwa/cashshophandler.cpp b/src/net/tmwa/cashshophandler.cpp
index 374c4d081..259a59a33 100644
--- a/src/net/tmwa/cashshophandler.cpp
+++ b/src/net/tmwa/cashshophandler.cpp
@@ -57,4 +57,8 @@ void CashShopHandler::requestPoints() const
{
}
+void CashShopHandler::requestTab(const int tab A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/cashshophandler.h b/src/net/tmwa/cashshophandler.h
index 47ea4b505..1bef0e9c0 100644
--- a/src/net/tmwa/cashshophandler.h
+++ b/src/net/tmwa/cashshophandler.h
@@ -48,6 +48,8 @@ class CashShopHandler final : public MessageHandler,
void close() const override final;
void requestPoints() const override final;
+
+ void requestTab(const int tab) const override final;
};
} // namespace TmwAthena