summaryrefslogtreecommitdiff
path: root/src/net/eathena/messageout.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-31 14:11:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-31 14:11:23 +0300
commit544de86739a85792be7e6883968b2af8590d0711 (patch)
treeecdbe7aa2224e2aca5f3124443c417457bc94775 /src/net/eathena/messageout.h
parenta63248380554067d4291c653b4ba82db36fbc821 (diff)
downloadplus-544de86739a85792be7e6883968b2af8590d0711.tar.gz
plus-544de86739a85792be7e6883968b2af8590d0711.tar.bz2
plus-544de86739a85792be7e6883968b2af8590d0711.tar.xz
plus-544de86739a85792be7e6883968b2af8590d0711.zip
Add comments for outbound packet fields in debug log.
Diffstat (limited to 'src/net/eathena/messageout.h')
-rw-r--r--src/net/eathena/messageout.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/net/eathena/messageout.h b/src/net/eathena/messageout.h
index 121d5a88f..8834d44fe 100644
--- a/src/net/eathena/messageout.h
+++ b/src/net/eathena/messageout.h
@@ -47,16 +47,21 @@ class MessageOut final : public Net::MessageOut
A_DELETE_COPY(MessageOut)
- void writeInt16(const int16_t value); /**< Writes a short. */
+ /**< Writes a short. */
+ void writeInt16(const int16_t value,
+ const char *const str = nullptr);
- void writeInt32(const int32_t value); /**< Writes a long. */
+ /**< Writes a long. */
+ void writeInt32(const int32_t value,
+ const char *const str = nullptr);
/**
* Encodes coordinates and direction in 3 bytes.
*/
void writeCoordinates(const uint16_t x,
const uint16_t y,
- unsigned char direction);
+ unsigned char direction,
+ const char *const str = nullptr);
void resetPos()
{ mPos = 0; }