summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 00:24:58 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 01:02:27 +0300
commit66472d9fcad0938fe2ba97138341043e89ace142 (patch)
tree3b07f1dc5ef7c232bd3e1d24ba8e8db70fb67c50 /src/net
parent2265e3b3558a06e2145a67c4ee517487ca47c81c (diff)
downloadplus-66472d9fcad0938fe2ba97138341043e89ace142.tar.gz
plus-66472d9fcad0938fe2ba97138341043e89ace142.tar.bz2
plus-66472d9fcad0938fe2ba97138341043e89ace142.tar.xz
plus-66472d9fcad0938fe2ba97138341043e89ace142.zip
Add packet SMSG_MAIL2_ICON 0x09e7.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/mail2recv.cpp38
-rw-r--r--src/net/eathena/mail2recv.h37
-rw-r--r--src/net/eathena/network.cpp1
-rw-r--r--src/net/eathena/packetsin.inc3
4 files changed, 79 insertions, 0 deletions
diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp
new file mode 100644
index 000000000..1a07bfc52
--- /dev/null
+++ b/src/net/eathena/mail2recv.cpp
@@ -0,0 +1,38 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2017 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "net/eathena/mail2recv.h"
+
+#include "logger.h"
+
+#include "net/messagein.h"
+
+#include "debug.h"
+
+namespace EAthena
+{
+
+void Mail2Recv::processMailIcon(Net::MessageIn &msg)
+{
+ UNIMPLEMENTEDPACKET;
+ msg.readUInt8("show icon");
+}
+
+} // namespace EAthena
diff --git a/src/net/eathena/mail2recv.h b/src/net/eathena/mail2recv.h
new file mode 100644
index 000000000..6be888911
--- /dev/null
+++ b/src/net/eathena/mail2recv.h
@@ -0,0 +1,37 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2011-2017 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NET_EATHENA_MAIL2RECV_H
+#define NET_EATHENA_MAIL2RECV_H
+
+namespace Net
+{
+ class MessageIn;
+} // namespace Net
+
+namespace EAthena
+{
+ namespace Mail2Recv
+ {
+ void processMailIcon(Net::MessageIn &msg);
+ } // namespace MailRecv
+} // namespace EAthena
+
+#endif // NET_EATHENA_MAIL2RECV_H
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index 79ac29f51..dfc84b6b4 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -60,6 +60,7 @@
#include "net/eathena/inventoryrecv.h"
#include "net/eathena/itemrecv.h"
#include "net/eathena/loginrecv.h"
+#include "net/eathena/mail2recv.h"
#include "net/eathena/mailrecv.h"
#include "net/eathena/maprecv.h"
#include "net/eathena/marketrecv.h"
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index 41cfa1036..c3e20c6c4 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -794,6 +794,9 @@ if (packetVersion >= 20140613)
packet(SMSG_BATTLE_UPDATE_HP, 0x0a0e, 14, &BattleGroundRecv::processBattleUpdateHp, 20140613);
}
+// 20140716
+packet(SMSG_MAIL2_ICON, 0x09e7, 3, &Mail2Recv::processMailIcon, 20140716);
+
// 20141016
packet(SMSG_ROULETTE_OPEN_ACK, 0x0a1a, 23, &RouletteRecv::processRouletteOpenAck, 20141016);
packet(SMSG_ROULETTE_INFO_ACK_TYPE, 0x0a1c, -1, &RouletteRecv::processRouletteInfoAckType, 20141016);