summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-20 20:10:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-20 20:10:12 +0300
commita7265913b3297c8b72db5683152d466bf2ffd340 (patch)
tree897816a41d12dd4a0e4bbef1aafcdbb637582e5b
parent2dc33d6d6b20364fff5cdc74e2f6875124318e09 (diff)
downloadmanaplus-a7265913b3297c8b72db5683152d466bf2ffd340.tar.gz
manaplus-a7265913b3297c8b72db5683152d466bf2ffd340.tar.bz2
manaplus-a7265913b3297c8b72db5683152d466bf2ffd340.tar.xz
manaplus-a7265913b3297c8b72db5683152d466bf2ffd340.zip
eathena: impliment packet CMSG_GUILD_REQUEST_EMBLEM.
-rw-r--r--src/net/eathena/guildhandler.cpp6
-rw-r--r--src/net/eathena/guildhandler.h2
-rw-r--r--src/net/guildhandler.h2
-rw-r--r--src/net/tmwa/guildhandler.cpp4
-rw-r--r--src/net/tmwa/guildhandler.h2
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index e7f61218d..cd4078666 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -517,4 +517,10 @@ void GuildHandler::changeEmblem(std::string emblem) const
outMsg.writeString(emblem, sz, "emblem");
}
+void GuildHandler::requestEmblem(const int guildId) const
+{
+ createOutPacket(CMSG_GUILD_REQUEST_EMBLEM);
+ outMsg.writeInt32(guildId, "guild id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h
index d3eb21664..4f2add867 100644
--- a/src/net/eathena/guildhandler.h
+++ b/src/net/eathena/guildhandler.h
@@ -90,6 +90,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
void changeEmblem(std::string emblem) const override final;
+ void requestEmblem(const int guildId) const override final;
+
protected:
static void processGuildUpdateCoords(Net::MessageIn &msg);
diff --git a/src/net/guildhandler.h b/src/net/guildhandler.h
index 3cd2da282..35067dda7 100644
--- a/src/net/guildhandler.h
+++ b/src/net/guildhandler.h
@@ -87,6 +87,8 @@ class GuildHandler notfinal
virtual void changeEmblem(std::string emblem) const = 0;
+ virtual void requestEmblem(const int guildId) 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 4f6404872..29eeaaaa6 100644
--- a/src/net/tmwa/guildhandler.cpp
+++ b/src/net/tmwa/guildhandler.cpp
@@ -455,4 +455,8 @@ void GuildHandler::changeEmblem(std::string emblem A_UNUSED) const
{
}
+void GuildHandler::requestEmblem(const int guildId A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/guildhandler.h b/src/net/tmwa/guildhandler.h
index 16a04cc14..2c27ac3f5 100644
--- a/src/net/tmwa/guildhandler.h
+++ b/src/net/tmwa/guildhandler.h
@@ -90,6 +90,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
void changeEmblem(std::string emblem) const override final;
+ void requestEmblem(const int guildId) const override final;
+
protected:
static void processGuildPositionInfo(Net::MessageIn &msg);