summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 11:54:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 11:54:00 +0300
commit91f7b690419a3600e58637aff6158ad8734bdf8b (patch)
tree558a62b4b947ce2bb94cfef2996269c52ba251e3 /src
parent017cf6a085d9fc8ff99776ecdc8e4a0e91022c87 (diff)
downloadmanaverse-91f7b690419a3600e58637aff6158ad8734bdf8b.tar.gz
manaverse-91f7b690419a3600e58637aff6158ad8734bdf8b.tar.bz2
manaverse-91f7b690419a3600e58637aff6158ad8734bdf8b.tar.xz
manaverse-91f7b690419a3600e58637aff6158ad8734bdf8b.zip
eathena: add packet CMSG_MAIL_READ_MESSAGE 0x0241.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/mailhandler.cpp6
-rw-r--r--src/net/eathena/mailhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/mailhandler.h2
-rw-r--r--src/net/tmwa/mailhandler.cpp4
-rw-r--r--src/net/tmwa/mailhandler.h2
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index 522484dfa..1b19a4644 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -79,4 +79,10 @@ void MailHandler::refresh()
MessageOut outMsg(CMSG_MAIL_REFRESH_INBOX);
}
+void MailHandler::readMessage(const int msgId)
+{
+ MessageOut outMsg(CMSG_MAIL_READ_MESSAGE);
+ outMsg.writeInt32(msgId, "message id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h
index 42bd11307..277b534c2 100644
--- a/src/net/eathena/mailhandler.h
+++ b/src/net/eathena/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;
+
protected:
void processMailOpen(Net::MessageIn &msg) const;
};
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index bba239726..e7257f4c9 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -367,6 +367,7 @@
#define CMSG_PLAYER_AUTO_REVIVE 0x0292
#define CMSG_MAIL_REFRESH_INBOX 0x023f
+#define CMSG_MAIL_READ_MESSAGE 0x0241
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb
diff --git a/src/net/mailhandler.h b/src/net/mailhandler.h
index d7a646c36..be791dd40 100644
--- a/src/net/mailhandler.h
+++ b/src/net/mailhandler.h
@@ -33,6 +33,8 @@ class MailHandler notfinal
{ }
virtual void refresh() = 0;
+
+ virtual void readMessage(const int msgId) = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/mailhandler.cpp b/src/net/tmwa/mailhandler.cpp
index 14d993390..7a6201725 100644
--- a/src/net/tmwa/mailhandler.cpp
+++ b/src/net/tmwa/mailhandler.cpp
@@ -46,4 +46,8 @@ void MailHandler::refresh()
{
}
+void MailHandler::readMessage(const int msgId A_UNUSED)
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/mailhandler.h b/src/net/tmwa/mailhandler.h
index 4962cb029..dcd907f31 100644
--- a/src/net/tmwa/mailhandler.h
+++ b/src/net/tmwa/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;
+
+ void readMessage(const int msgId) override final;
};
} // namespace TmwAthena