summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-20 18:28:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-20 18:28:49 +0300
commit2f879820ee0e07b94a7c8189b8b7ab0720c3e208 (patch)
tree0d9c1a55cfb304c5e3fa5ea81b0202cb0e7f307d /src/net/eathena
parentd4b88a7ebce6222c34928c49925f972515593e89 (diff)
downloadmanaplus-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.gz
manaplus-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.bz2
manaplus-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.tar.xz
manaplus-2f879820ee0e07b94a7c8189b8b7ab0720c3e208.zip
Move partyshare into separate file.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/partyhandler.cpp8
-rw-r--r--src/net/eathena/partyhandler.h5
2 files changed, 7 insertions, 6 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index b41fd36d1..e1c385c4c 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -183,9 +183,9 @@ void PartyHandler::chat(const std::string &text) const
outMsg.writeString(text, static_cast<int>(text.length()));
}
-void PartyHandler::setShareExperience(const PartyShare share) const
+void PartyHandler::setShareExperience(const Net::PartyShare share) const
{
- if (share == PARTY_SHARE_NOT_POSSIBLE)
+ if (share == Net::PartyShare::NOT_POSSIBLE)
return;
MessageOut outMsg(CMSG_PARTY_SETTINGS);
@@ -193,9 +193,9 @@ void PartyHandler::setShareExperience(const PartyShare share) const
outMsg.writeInt16(static_cast<int16_t>(mShareItems));
}
-void PartyHandler::setShareItems(const PartyShare share) const
+void PartyHandler::setShareItems(const Net::PartyShare share) const
{
- if (share == PARTY_SHARE_NOT_POSSIBLE)
+ if (share == Net::PartyShare::NOT_POSSIBLE)
return;
MessageOut outMsg(CMSG_PARTY_SETTINGS);
diff --git a/src/net/eathena/partyhandler.h b/src/net/eathena/partyhandler.h
index 0c69f5da9..87bd50543 100644
--- a/src/net/eathena/partyhandler.h
+++ b/src/net/eathena/partyhandler.h
@@ -59,9 +59,10 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler
void chat(const std::string &text) const override final;
- void setShareExperience(const PartyShare share) const override final;
+ void setShareExperience(const Net::PartyShare share)
+ const override final;
- void setShareItems(const PartyShare share) const override final;
+ void setShareItems(const Net::PartyShare share) const override final;
};
} // namespace EAthena