From 2f879820ee0e07b94a7c8189b8b7ab0720c3e208 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 May 2014 18:28:49 +0300 Subject: Move partyshare into separate file. --- src/net/tmwa/partyhandler.cpp | 8 ++++---- src/net/tmwa/partyhandler.h | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp index 310d71783..634ecbff5 100644 --- a/src/net/tmwa/partyhandler.cpp +++ b/src/net/tmwa/partyhandler.cpp @@ -185,9 +185,9 @@ void PartyHandler::chat(const std::string &text) const outMsg.writeString(text, static_cast(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); @@ -195,9 +195,9 @@ void PartyHandler::setShareExperience(const PartyShare share) const outMsg.writeInt16(static_cast(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/tmwa/partyhandler.h b/src/net/tmwa/partyhandler.h index 6a52c3321..ae4249143 100644 --- a/src/net/tmwa/partyhandler.h +++ b/src/net/tmwa/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 TmwAthena -- cgit v1.2.3-70-g09d2