diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-26 22:41:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-26 22:41:39 +0300 |
commit | 2f63276d3c09246878fb2470c3c047c7d4144a2d (patch) | |
tree | b96ab3d64657a27854302aca637cb6f8c281fdd5 | |
parent | d6f607842bb91d2f76b6d677e4e899de50fa27cf (diff) | |
download | manaverse-2f63276d3c09246878fb2470c3c047c7d4144a2d.tar.gz manaverse-2f63276d3c09246878fb2470c3c047c7d4144a2d.tar.bz2 manaverse-2f63276d3c09246878fb2470c3c047c7d4144a2d.tar.xz manaverse-2f63276d3c09246878fb2470c3c047c7d4144a2d.zip |
eathena: add packet CMSG_NPC_CASH_SHOP_CLOSE 0x084a.
-rw-r--r-- | src/net/cashshophandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/cashshophandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/cashshophandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/cashshophandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/cashshophandler.h | 2 |
6 files changed, 16 insertions, 0 deletions
diff --git a/src/net/cashshophandler.h b/src/net/cashshophandler.h index cbe0cb0d7..df9f0e172 100644 --- a/src/net/cashshophandler.h +++ b/src/net/cashshophandler.h @@ -40,6 +40,8 @@ class CashShopHandler notfinal const int itemId, const unsigned char color, const int amount) const = 0; + + virtual void close() const = 0; }; } // namespace Net diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index 082394b68..fcdf84ca9 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -181,4 +181,9 @@ void CashShopHandler::buyItem(const int points, outMsg.writeInt16(static_cast<int16_t>(itemId), "item id"); } +void CashShopHandler::close() const +{ + createOutPacket(CMSG_NPC_CASH_SHOP_CLOSE); +} + } // namespace EAthena diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h index 08aa39ac5..dc6980ec7 100644 --- a/src/net/eathena/cashshophandler.h +++ b/src/net/eathena/cashshophandler.h @@ -46,6 +46,8 @@ class CashShopHandler final : public MessageHandler, const unsigned char color, const int amount) const override final; + void close() 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 81c062f79..4e0311e29 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -533,6 +533,7 @@ #define CMSG_NPC_MARKET_CLOSE 0x09d8 #define CMSG_NPC_MARKET_BUY 0x09d6 #define CMSG_NPC_CASH_SHOP_BUY 0x0288 +#define CMSG_NPC_CASH_SHOP_CLOSE 0x084a #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 d3208325b..cefeb496d 100644 --- a/src/net/tmwa/cashshophandler.cpp +++ b/src/net/tmwa/cashshophandler.cpp @@ -49,4 +49,8 @@ void CashShopHandler::buyItem(const int points A_UNUSED, { } +void CashShopHandler::close() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/cashshophandler.h b/src/net/tmwa/cashshophandler.h index e1a38e1c3..9a15a260e 100644 --- a/src/net/tmwa/cashshophandler.h +++ b/src/net/tmwa/cashshophandler.h @@ -44,6 +44,8 @@ class CashShopHandler final : public MessageHandler, const int itemId, const unsigned char color, const int amount) const override final; + + void close() const override final; }; } // namespace TmwAthena |