summaryrefslogtreecommitdiff
path: root/src/net/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/protocol.h')
-rw-r--r--src/net/protocol.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/net/protocol.h b/src/net/protocol.h
index f056f003..07b5c926 100644
--- a/src/net/protocol.h
+++ b/src/net/protocol.h
@@ -113,6 +113,7 @@
* - PGMSG_*: from client to game server
* - GPMSG_*: from game server to client
* Components: B byte, W word, D double word, S variable-size string
+ * C tile-based coordinates (B*3)
*/
enum {
// Login/Register
@@ -157,7 +158,7 @@ enum {
// monster: W type id
GPMSG_BEING_LEAVE = 0x0201, // W being id
PGMSG_WALK = 0x0260, // W*2 destination
- GPMSG_BEINGS_MOVE = 0x0280, // { W being id, W*2 position, W*2 destination }*
+ GPMSG_BEINGS_MOVE = 0x0280, // { W being id, B flags [, C position] [, W*2 destination] }*
PGMSG_SAY = 0x02A0, // S text
GPMSG_SAY = 0x02A1, // W being id, S text
PGMSG_USE_ITEM = 0x0300, // L item id
@@ -238,4 +239,12 @@ enum {
OBJECT_PLAYER
};
+// Moving object flags
+enum {
+ // Payload contains the current position.
+ MOVING_POSITION = 1,
+ // Payload contains the destination.
+ MOVING_DESTINATION = 2
+};
+
#endif