diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-15 11:57:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-15 11:57:53 +0300 |
commit | 52a130d4975dcd05a283fb46ba68af094ff91c4e (patch) | |
tree | d2986b1c3921a6a9c61351f57f2d885fe0beb460 /src | |
parent | 91f7b690419a3600e58637aff6158ad8734bdf8b (diff) | |
download | mv-52a130d4975dcd05a283fb46ba68af094ff91c4e.tar.gz mv-52a130d4975dcd05a283fb46ba68af094ff91c4e.tar.bz2 mv-52a130d4975dcd05a283fb46ba68af094ff91c4e.tar.xz mv-52a130d4975dcd05a283fb46ba68af094ff91c4e.zip |
eathena: add packet CMSG_MAIL_GET_ATTACH 0x0244.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/mailhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/mailhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-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 1b19a4644..264da8a21 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -85,4 +85,10 @@ void MailHandler::readMessage(const int msgId) outMsg.writeInt32(msgId, "message id"); } +void MailHandler::getAttach(const int msgId) +{ + MessageOut outMsg(CMSG_MAIL_GET_ATTACH); + outMsg.writeInt32(msgId, "message id"); +} + } // namespace EAthena diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h index 277b534c2..2c0d0b0cc 100644 --- a/src/net/eathena/mailhandler.h +++ b/src/net/eathena/mailhandler.h @@ -42,6 +42,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler void readMessage(const int msgId) override final; + void getAttach(const int msgId) override final; + protected: void processMailOpen(Net::MessageIn &msg) const; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index e7257f4c9..1cf12d141 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -368,6 +368,7 @@ #define CMSG_MAIL_REFRESH_INBOX 0x023f #define CMSG_MAIL_READ_MESSAGE 0x0241 +#define CMSG_MAIL_GET_ATTACH 0x0244 #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb diff --git a/src/net/mailhandler.h b/src/net/mailhandler.h index be791dd40..b72e6e8b9 100644 --- a/src/net/mailhandler.h +++ b/src/net/mailhandler.h @@ -35,6 +35,8 @@ class MailHandler notfinal virtual void refresh() = 0; virtual void readMessage(const int msgId) = 0; + + virtual void getAttach(const int msgId) = 0; }; } // namespace Net diff --git a/src/net/tmwa/mailhandler.cpp b/src/net/tmwa/mailhandler.cpp index 7a6201725..5bc1836e1 100644 --- a/src/net/tmwa/mailhandler.cpp +++ b/src/net/tmwa/mailhandler.cpp @@ -50,4 +50,8 @@ void MailHandler::readMessage(const int msgId A_UNUSED) { } +void MailHandler::getAttach(const int msgId A_UNUSED) +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/mailhandler.h b/src/net/tmwa/mailhandler.h index dcd907f31..f643c0299 100644 --- a/src/net/tmwa/mailhandler.h +++ b/src/net/tmwa/mailhandler.h @@ -40,6 +40,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler void refresh() override final; void readMessage(const int msgId) override final; + + void getAttach(const int msgId) override final; }; } // namespace TmwAthena |