diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-19 01:40:32 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-19 01:40:32 +0000 |
commit | cb25562fc18a169ee5fe2e2440b5267cbe0b9c6e (patch) | |
tree | 02f19cdc16f875cd5b53b19c364ea0a6b65104f8 /src/messagein.h | |
parent | 62395df8a674475cd7b277e964cc5512fa6e7576 (diff) | |
download | manaserv-cb25562fc18a169ee5fe2e2440b5267cbe0b9c6e.tar.gz manaserv-cb25562fc18a169ee5fe2e2440b5267cbe0b9c6e.tar.bz2 manaserv-cb25562fc18a169ee5fe2e2440b5267cbe0b9c6e.tar.xz manaserv-cb25562fc18a169ee5fe2e2440b5267cbe0b9c6e.zip |
Changing the way the message ID is read.
Diffstat (limited to 'src/messagein.h')
-rw-r--r-- | src/messagein.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/messagein.h b/src/messagein.h index 0b99c40f..b2682fc1 100644 --- a/src/messagein.h +++ b/src/messagein.h @@ -43,6 +43,7 @@ class MessageIn */ ~MessageIn(); + short getId() { return mId; } /**< Returns the message ID. */ char readByte(); /**< Reads a byte. */ short readShort(); /**< Reads a short. */ @@ -56,7 +57,8 @@ class MessageIn std::string readString(int length = -1); private: - Packet *mPacket; + Packet *mPacket; /**< The packet being processed. */ + short mId; /**< The message ID. */ /** * Actual Position in the packet. From 0 to packet->length - 1. |