diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-27 21:47:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-27 21:47:43 +0300 |
commit | 6f539a2dbb38966fdb11da4b8ef0e7b3f4bc68c2 (patch) | |
tree | 4150b6a62d4e13a2164e26af572a6b5028512b05 /src/net/messagein.h | |
parent | f0a0e1eff7be666ec963440de0a1fbcddf1d407e (diff) | |
download | manaverse-6f539a2dbb38966fdb11da4b8ef0e7b3f4bc68c2.tar.gz manaverse-6f539a2dbb38966fdb11da4b8ef0e7b3f4bc68c2.tar.bz2 manaverse-6f539a2dbb38966fdb11da4b8ef0e7b3f4bc68c2.tar.xz manaverse-6f539a2dbb38966fdb11da4b8ef0e7b3f4bc68c2.zip |
Add support for main/re/zero packet versions in MessageIn class.
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r-- | src/net/messagein.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/net/messagein.h b/src/net/messagein.h index 255710349..155e2a6b8 100644 --- a/src/net/messagein.h +++ b/src/net/messagein.h @@ -130,9 +130,15 @@ class MessageIn notfinal static uint8_t fromServerDirection(const uint8_t serverDir) A_WARN_UNUSED; - unsigned int getVersion() const noexcept2 A_WARN_UNUSED + int getVersion() const noexcept2 A_WARN_UNUSED { return mVersion; } + int getVersionMain() const noexcept2 A_WARN_UNUSED; + + int getVersionRe() const noexcept2 A_WARN_UNUSED; + + int getVersionZero() const noexcept2 A_WARN_UNUSED; + protected: /** * Constructor. @@ -148,7 +154,7 @@ class MessageIn notfinal * reading it. */ unsigned int mPos; - unsigned int mVersion; + int mVersion; uint16_t mId; /**< The message ID. */ bool mIgnore; }; |