diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-08 14:44:50 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-08 14:44:50 +0000 |
commit | 96ed6284affefcba1b0ded75e4ef88e52b430c4d (patch) | |
tree | 6495166390f2279d8fb68b900191795ead09fda4 /src/net/messageout.hpp | |
parent | e481ad5466eb2b87036515a2a15166e41828c31f (diff) | |
download | manaserv-96ed6284affefcba1b0ded75e4ef88e52b430c4d.tar.gz manaserv-96ed6284affefcba1b0ded75e4ef88e52b430c4d.tar.bz2 manaserv-96ed6284affefcba1b0ded75e4ef88e52b430c4d.tar.xz manaserv-96ed6284affefcba1b0ded75e4ef88e52b430c4d.zip |
Changed some argument types. Added untested protocol for moving objects between slots of inventory. Fixed position of the cleaning bit for looks, so that it actually fits into network data.
Diffstat (limited to 'src/net/messageout.hpp')
-rw-r--r-- | src/net/messageout.hpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/net/messageout.hpp b/src/net/messageout.hpp index 3515476f..2d0490f6 100644 --- a/src/net/messageout.hpp +++ b/src/net/messageout.hpp @@ -40,7 +40,7 @@ class MessageOut /** * Constructor that takes a message ID. */ - MessageOut(short id); + MessageOut(int id); /** * Destructor. @@ -52,14 +52,11 @@ class MessageOut */ void clear(); - void - writeByte(char value); /**< Writes a byte. */ + void writeByte(int value); /**< Writes an integer on one byte. */ - void - writeShort(short value); /**< Writes a short. */ + void writeShort(int value); /**< Writes an integer on two bytes. */ - void - writeLong(long value); /**< Writes a long. */ + void writeLong(int value); /**< Writes an integer on four bytes. */ /** * Writes a 3-byte block containing tile-based coordinates. |