diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-15 11:38:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-15 11:38:09 +0300 |
commit | 017cf6a085d9fc8ff99776ecdc8e4a0e91022c87 (patch) | |
tree | 63f7ef777c67b3abe3a4bcb43e0e3ab1cdf74de7 /src/net | |
parent | 4aebda1ff020b2fcbf8aaaeea96188dedcae030b (diff) | |
download | mv-017cf6a085d9fc8ff99776ecdc8e4a0e91022c87.tar.gz mv-017cf6a085d9fc8ff99776ecdc8e4a0e91022c87.tar.bz2 mv-017cf6a085d9fc8ff99776ecdc8e4a0e91022c87.tar.xz mv-017cf6a085d9fc8ff99776ecdc8e4a0e91022c87.zip |
eathena: add packet CMSG_MAIL_REFRESH_INBOX 0x023f.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/mailhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/mailhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 2 | ||||
-rw-r--r-- | src/net/mailhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/mailhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/mailhandler.h | 2 |
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index 4a28061a3..522484dfa 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -74,4 +74,9 @@ void MailHandler::processMailOpen(Net::MessageIn &msg) const } } +void MailHandler::refresh() +{ + MessageOut outMsg(CMSG_MAIL_REFRESH_INBOX); +} + } // namespace EAthena diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h index ec3ed3e9e..42bd11307 100644 --- a/src/net/eathena/mailhandler.h +++ b/src/net/eathena/mailhandler.h @@ -38,6 +38,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler void handleMessage(Net::MessageIn &msg) override final; + void refresh() override final; + protected: void processMailOpen(Net::MessageIn &msg) const; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 532549a8c..bba239726 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -366,6 +366,8 @@ #define CMSG_PVP_INFO 0x020f #define CMSG_PLAYER_AUTO_REVIVE 0x0292 +#define CMSG_MAIL_REFRESH_INBOX 0x023f + #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb #define SMSG_SKILL_CAST_CANCEL 0x01b9 diff --git a/src/net/mailhandler.h b/src/net/mailhandler.h index 2f18edf7b..d7a646c36 100644 --- a/src/net/mailhandler.h +++ b/src/net/mailhandler.h @@ -31,6 +31,8 @@ class MailHandler notfinal public: virtual ~MailHandler() { } + + virtual void refresh() = 0; }; } // namespace Net diff --git a/src/net/tmwa/mailhandler.cpp b/src/net/tmwa/mailhandler.cpp index b018a0ce1..14d993390 100644 --- a/src/net/tmwa/mailhandler.cpp +++ b/src/net/tmwa/mailhandler.cpp @@ -42,4 +42,8 @@ void MailHandler::handleMessage(Net::MessageIn &msg A_UNUSED) { } +void MailHandler::refresh() +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/mailhandler.h b/src/net/tmwa/mailhandler.h index 2336dac1b..4962cb029 100644 --- a/src/net/tmwa/mailhandler.h +++ b/src/net/tmwa/mailhandler.h @@ -36,6 +36,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler A_DELETE_COPY(MailHandler) void handleMessage(Net::MessageIn &msg) override final; + + void refresh() override final; }; } // namespace TmwAthena |