summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 12:39:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 12:39:55 +0300
commit470f883b5701b74ae956f02f1b91ac7e584776b2 (patch)
tree6a0d16edc598c3e95a499f1ac8da20acc2bf1e20
parent633ec96c9a4403eeacdd91fdb5302f8989933265 (diff)
downloadmv-470f883b5701b74ae956f02f1b91ac7e584776b2.tar.gz
mv-470f883b5701b74ae956f02f1b91ac7e584776b2.tar.bz2
mv-470f883b5701b74ae956f02f1b91ac7e584776b2.tar.xz
mv-470f883b5701b74ae956f02f1b91ac7e584776b2.zip
eathena: add packet CMSG_FRIENDS_DELETE_PLAYER 0x020a.
-rw-r--r--src/net/eathena/friendshandler.cpp7
-rw-r--r--src/net/eathena/friendshandler.h3
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/friendshandler.h2
-rw-r--r--src/net/tmwa/friendshandler.cpp5
-rw-r--r--src/net/tmwa/friendshandler.h3
6 files changed, 21 insertions, 0 deletions
diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp
index fbb505e47..783ad1109 100644
--- a/src/net/eathena/friendshandler.cpp
+++ b/src/net/eathena/friendshandler.cpp
@@ -107,4 +107,11 @@ void FriendsHandler::inviteResponse(const int accountId,
outMsg.writeInt32(accept ? 1 : 0, "result");
}
+void FriendsHandler::remove(const int accountId, const int charId) const
+{
+ createOutPacket(CMSG_FRIENDS_DELETE_PLAYER);
+ outMsg.writeInt32(accountId, "account id");
+ outMsg.writeInt32(charId, "char id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/friendshandler.h b/src/net/eathena/friendshandler.h
index c0bdd5dc7..3b6dd4e45 100644
--- a/src/net/eathena/friendshandler.h
+++ b/src/net/eathena/friendshandler.h
@@ -43,6 +43,9 @@ class FriendsHandler final : public MessageHandler,
const int charId,
const bool accept) const override final;
+ void remove(const int accountId,
+ const int charId) const override final;
+
protected:
void processPlayerOnline(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index b7b86c612..c2a6dfbfc 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -481,5 +481,6 @@
#define CMSG_FRIENDS_ADD_PLAYER 0x023b
#define CMSG_FRIENDS_REQUEST_ACK 0x0208
+#define CMSG_FRIENDS_DELETE_PLAYER 0x020a
#endif // NET_EATHENA_PROTOCOL_H
diff --git a/src/net/friendshandler.h b/src/net/friendshandler.h
index 9e36578e0..3644169ea 100644
--- a/src/net/friendshandler.h
+++ b/src/net/friendshandler.h
@@ -37,6 +37,8 @@ class FriendsHandler notfinal
const int charId,
const bool accept) const = 0;
+ virtual void remove(const int accountId, const int charId) const = 0;
+
virtual ~FriendsHandler()
{ }
};
diff --git a/src/net/tmwa/friendshandler.cpp b/src/net/tmwa/friendshandler.cpp
index eb4d01845..5361a9f22 100644
--- a/src/net/tmwa/friendshandler.cpp
+++ b/src/net/tmwa/friendshandler.cpp
@@ -57,4 +57,9 @@ void FriendsHandler::inviteResponse(const int accountId A_UNUSED,
{
}
+void FriendsHandler::remove(const int accountId A_UNUSED,
+ const int charId A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/friendshandler.h b/src/net/tmwa/friendshandler.h
index 96cd4db91..232c8153a 100644
--- a/src/net/tmwa/friendshandler.h
+++ b/src/net/tmwa/friendshandler.h
@@ -42,6 +42,9 @@ class FriendsHandler final : public MessageHandler,
void inviteResponse(const int accountId,
const int charId,
const bool accept) const override final;
+
+ void remove(const int accountId,
+ const int charId) const override final;
};
} // namespace TmwAthena