summaryrefslogtreecommitdiff
path: root/src/net/ea/partyhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 14:31:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 14:31:43 +0300
commitb643a5c48d53dbeca7672e3c8b5182f9d698abcb (patch)
treeab596dc9a0c573764c1e0b427f22303faa1bfec1 /src/net/ea/partyhandler.h
parent6281c1281fe85a1c75155df44c99aa843561a4f2 (diff)
downloadmanaverse-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.gz
manaverse-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.bz2
manaverse-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.xz
manaverse-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.zip
Convert PacketShare enum into strong typed enum.
Diffstat (limited to 'src/net/ea/partyhandler.h')
-rw-r--r--src/net/ea/partyhandler.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/net/ea/partyhandler.h b/src/net/ea/partyhandler.h
index 12dec8c6c..453aced1d 100644
--- a/src/net/ea/partyhandler.h
+++ b/src/net/ea/partyhandler.h
@@ -44,12 +44,10 @@ class PartyHandler notfinal : public Net::PartyHandler
void join(const int partyId) const override final;
- Net::PartyShare::Type getShareExperience()
- const override final A_WARN_UNUSED
+ PartyShareT getShareExperience() const override final A_WARN_UNUSED
{ return mShareExp; }
- Net::PartyShare::Type getShareItems()
- const override final A_WARN_UNUSED
+ PartyShareT getShareItems() const override final A_WARN_UNUSED
{ return mShareItems; }
static void reload();
@@ -68,11 +66,11 @@ class PartyHandler notfinal : public Net::PartyHandler
static void processPartyUpdateCoords(Net::MessageIn &msg);
static void processPartySettingsContinue(Net::MessageIn &msg,
- const int16_t exp,
- const int16_t item);
+ const PartyShareT exp,
+ const PartyShareT item);
- static Net::PartyShare::Type mShareExp;
- static Net::PartyShare::Type mShareItems;
+ static PartyShareT mShareExp;
+ static PartyShareT mShareItems;
};
extern Party *taParty;