summaryrefslogtreecommitdiff
path: root/src/net/messageout.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-27 20:27:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-27 20:33:18 +0200
commit55ee3f8a67132b6f6542b21e69d9ccab064256ca (patch)
treedc7b59b8099b21975648c8641ccb748013992753 /src/net/messageout.h
parent58bc517e0bb41a761b9cd8df75883ff3aa90365e (diff)
downloadmana-client-55ee3f8a67132b6f6542b21e69d9ccab064256ca.tar.gz
mana-client-55ee3f8a67132b6f6542b21e69d9ccab064256ca.tar.bz2
mana-client-55ee3f8a67132b6f6542b21e69d9ccab064256ca.tar.xz
mana-client-55ee3f8a67132b6f6542b21e69d9ccab064256ca.zip
Moved special coordinates packing into MessageOut
Is a better place. The reading part was already in MessageIn.
Diffstat (limited to 'src/net/messageout.h')
-rw-r--r--src/net/messageout.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/messageout.h b/src/net/messageout.h
index 9dc31525..5027ea47 100644
--- a/src/net/messageout.h
+++ b/src/net/messageout.h
@@ -56,6 +56,14 @@ class MessageOut
void writeInt16(Sint16 value); /**< Writes a short. */
void writeInt32(Sint32 value); /**< Writes a long. */
+#ifdef EATHENA_SUPPORT
+ /**
+ * Encodes coordinates and direction in 3 bytes. Used by eAthena.
+ */
+ void writeCoordinates(unsigned short x, unsigned short y,
+ unsigned char direction);
+#endif
+
/**
* Writes a string. If a fixed length is not given (-1), it is stored
* as a short at the start of the string.