diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-20 19:23:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-20 19:23:23 +0300 |
commit | 4638aca892fe87611626e0579de41122b14bf9fe (patch) | |
tree | 6cc374e6b132c7962e1acb9275319805fdf4957a /src | |
parent | 4fae0e866646de40ec68592190785cdfd8f6b62d (diff) | |
download | manaverse-4638aca892fe87611626e0579de41122b14bf9fe.tar.gz manaverse-4638aca892fe87611626e0579de41122b14bf9fe.tar.bz2 manaverse-4638aca892fe87611626e0579de41122b14bf9fe.tar.xz manaverse-4638aca892fe87611626e0579de41122b14bf9fe.zip |
eathena: impliment packet CMSG_GUILD_BREAK.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/guildhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/guildhandler.h | 2 | ||||
-rw-r--r-- | src/net/guildhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/guildhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/guildhandler.h | 2 |
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index 350eb3bed..bcd13afab 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -501,4 +501,10 @@ void GuildHandler::requestOpposition(const Being *const being) const outMsg.writeInt32(being->getId(), "account id"); } +void GuildHandler::breakGuild(const std::string &name) const +{ + createOutPacket(CMSG_GUILD_BREAK); + outMsg.writeString(name, 40, "name"); +} + } // namespace EAthena diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h index d7406c2b6..d74bcd82a 100644 --- a/src/net/eathena/guildhandler.h +++ b/src/net/eathena/guildhandler.h @@ -86,6 +86,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler void requestOpposition(const Being *const being) const override final; + void breakGuild(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 0a1474631..fbef8726e 100644 --- a/src/net/guildhandler.h +++ b/src/net/guildhandler.h @@ -83,6 +83,8 @@ class GuildHandler notfinal virtual void checkMaster() const = 0; + virtual void breakGuild(const std::string &name) const = 0; + virtual void clear() const = 0; virtual ChatTab *getTab() const = 0; diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp index ab4820927..678afafa6 100644 --- a/src/net/tmwa/guildhandler.cpp +++ b/src/net/tmwa/guildhandler.cpp @@ -447,4 +447,8 @@ void GuildHandler::requestOpposition(const Being *const being A_UNUSED) const { } +void GuildHandler::breakGuild(const std::string &name A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/guildhandler.h b/src/net/tmwa/guildhandler.h index f4d803c3c..3f800a560 100644 --- a/src/net/tmwa/guildhandler.h +++ b/src/net/tmwa/guildhandler.h @@ -86,6 +86,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler void requestOpposition(const Being *const being) const override final; + void breakGuild(const std::string &name) const override final; + protected: static void processGuildPositionInfo(Net::MessageIn &msg); |