summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-08 22:52:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-08 22:52:45 +0300
commit08b9e2ba4a42a87e58465565e373bb01f1a95cdd (patch)
tree20fb95e9471efa5122ada96591b8817259e5608b /src/net
parent571ff6e1401876cb775b827f6af25e14b1f59c6f (diff)
downloadmanaverse-08b9e2ba4a42a87e58465565e373bb01f1a95cdd.tar.gz
manaverse-08b9e2ba4a42a87e58465565e373bb01f1a95cdd.tar.bz2
manaverse-08b9e2ba4a42a87e58465565e373bb01f1a95cdd.tar.xz
manaverse-08b9e2ba4a42a87e58465565e373bb01f1a95cdd.zip
eathena: add packet CMSG_REQUEST_RANKS 0x097c.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/beinghandler.h3
-rw-r--r--src/net/eathena/beinghandler.cpp6
-rw-r--r--src/net/eathena/beinghandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/beinghandler.cpp4
-rw-r--r--src/net/tmwa/beinghandler.h2
6 files changed, 18 insertions, 0 deletions
diff --git a/src/net/beinghandler.h b/src/net/beinghandler.h
index b2b3b96b0..56f2579d9 100644
--- a/src/net/beinghandler.h
+++ b/src/net/beinghandler.h
@@ -23,6 +23,7 @@
#define NET_BEINGHANDLER_H
#include "being/being.h"
+#include "being/rank.h"
#include "net/messagein.h"
@@ -40,6 +41,8 @@ class BeingHandler notfinal
virtual void requestNameById(const int id) const = 0;
virtual void undress(Being *const being) const = 0;
+
+ virtual void requestRanks(const Rank::Rank rank) const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 267ed3f7b..7a45bb346 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -250,6 +250,12 @@ void BeingHandler::undress(Being *const being) const
// being->setSprite(SPRITE_WEAPON, 0, "", true);
}
+void BeingHandler::requestRanks(const Rank::Rank rank) const
+{
+ MessageOut outMsg(CMSG_REQUEST_RANKS);
+ outMsg.writeInt16(static_cast<int16_t>(rank), "type");
+}
+
void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
{
if (!actorManager)
diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h
index ce0fe8636..e17ea3306 100644
--- a/src/net/eathena/beinghandler.h
+++ b/src/net/eathena/beinghandler.h
@@ -43,6 +43,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
void undress(Being *const being) const override final;
+ void requestRanks(const Rank::Rank rank) const override final;
+
protected:
void processBeingChangeLook(Net::MessageIn &msg) const;
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 243e2ed6c..ca29b44b3 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -304,6 +304,7 @@
#define CMSG_SOLVE_CHAR_NAME 0x0368
#define CMSG_IGNORE_ALL 0x00d0
+#define CMSG_REQUEST_RANKS 0x097c
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 90ec926ba..ef8d3e780 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -238,6 +238,10 @@ void BeingHandler::undress(Being *const being) const
// being->setSprite(SPRITE_WEAPON, 0, "", true);
}
+void BeingHandler::requestRanks(const Rank::Rank rank A_UNUSED) const
+{
+}
+
void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
{
BLOCK_START("BeingHandler::processBeingChangeLook")
diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h
index 34b464c41..ca7da87b7 100644
--- a/src/net/tmwa/beinghandler.h
+++ b/src/net/tmwa/beinghandler.h
@@ -43,6 +43,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
void undress(Being *const being) const override final;
+ void requestRanks(const Rank::Rank rank A_UNUSED) const override final;
+
protected:
void processBeingChangeLook(Net::MessageIn &msg) const;