diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-20 18:45:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-20 18:45:29 +0300 |
commit | 7e92c3043da816bcd53bbf014ece526a383f8eb3 (patch) | |
tree | 70079939fc58c942621d7d5fba8026a55f5cd8e1 | |
parent | f561f389d49d9a440dbf9f141a80fefb43086e6a (diff) | |
download | plus-7e92c3043da816bcd53bbf014ece526a383f8eb3.tar.gz plus-7e92c3043da816bcd53bbf014ece526a383f8eb3.tar.bz2 plus-7e92c3043da816bcd53bbf014ece526a383f8eb3.tar.xz plus-7e92c3043da816bcd53bbf014ece526a383f8eb3.zip |
eathena: impliment packet CMSG_GUILD_CHANGE_POS_INFO.
-rw-r--r-- | src/net/eathena/guildhandler.cpp | 15 | ||||
-rw-r--r-- | src/net/eathena/guildhandler.h | 6 | ||||
-rw-r--r-- | src/net/guildhandler.h | 6 | ||||
-rw-r--r-- | src/net/tmwa/guildhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/tmwa/guildhandler.h | 6 |
5 files changed, 41 insertions, 0 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index 85000d79f..84dd8eec8 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -477,4 +477,19 @@ void GuildHandler::endAlliance(const int guildId, outMsg.writeInt32(flag, "flag"); } +void GuildHandler::changePostionInfo(const int posId, + const int mode, + const int ranking, + const int payRate, + const std::string &name) const +{ + createOutPacket(CMSG_GUILD_CHANGE_POS_INFO); + outMsg.writeInt16(44, "len"); + outMsg.writeInt32(posId, "position id"); + outMsg.writeInt32(mode, "mode"); + outMsg.writeInt32(ranking, "ranking"); + outMsg.writeInt32(payRate, "pay rate"); + outMsg.writeString(name, 24, "name"); +} + } // namespace EAthena diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h index 89144ebad..6f42b4e80 100644 --- a/src/net/eathena/guildhandler.h +++ b/src/net/eathena/guildhandler.h @@ -78,6 +78,12 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler void endAlliance(const int guildId, const int flag) const override final; + void changePostionInfo(const int posId, + const int mode, + const int ranking, + const int payRate, + const std::string &name) const override final; + protected: static void processGuildUpdateCoords(Net::MessageIn &msg); diff --git a/src/net/guildhandler.h b/src/net/guildhandler.h index 8ba843e84..576e486a4 100644 --- a/src/net/guildhandler.h +++ b/src/net/guildhandler.h @@ -61,6 +61,12 @@ class GuildHandler notfinal virtual void changeMemberPostion(const GuildMember *const member, const int level) const = 0; + virtual void changePostionInfo(const int posId, + const int mode, + const int ranking, + const int payRate, + const std::string &name) const = 0; + virtual void requestAlliance(const Being *const being) const = 0; virtual void requestAllianceResponse(const int beingId, diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp index f02009aea..d9a1f6b7f 100644 --- a/src/net/tmwa/guildhandler.cpp +++ b/src/net/tmwa/guildhandler.cpp @@ -435,4 +435,12 @@ void GuildHandler::endAlliance(const int guildId A_UNUSED, { } +void GuildHandler::changePostionInfo(const int posId A_UNUSED, + const int mode A_UNUSED, + const int ranking A_UNUSED, + const int payRate A_UNUSED, + const std::string &name A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/guildhandler.h b/src/net/tmwa/guildhandler.h index 719991fdc..6b464d856 100644 --- a/src/net/tmwa/guildhandler.h +++ b/src/net/tmwa/guildhandler.h @@ -78,6 +78,12 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler void endAlliance(const int guildId, const int flag) const override final; + void changePostionInfo(const int posId, + const int mode, + const int ranking, + const int payRate, + const std::string &name) const override final; + protected: static void processGuildPositionInfo(Net::MessageIn &msg); |