Client-server message list
From TheManaWorld
This article is outdated
Parts of this article are outdated and do no longer represent the current state of the project or the intentions of the development team.
- The messages below are now discussed in the article about the new being movement system. Later on, this page should be updated with the new messages in order to document the protocol. --Bjørn 00:39, 25 July 2006 (CEST)
[edit]
The messages
These are the messages sent between the client and server to detail what commands the player is giving for his character. The command is stored as a short, unsigned integer type.
[edit]
0x0000 - 0x0001 - Walking control commands
0x0000 - WALK_IN_DIRECTION { B direction (n, ne, e, se, s, sw, w, nw, stop)}
0x0001 - WALK_TO_TARGET { S x, S y }
New proposal after considering lag and the ability to run, jump, fly or whatever (sent as flag). The MOVE_IN_DIRECTION_FROM message would be sent on certain intervals while a being moves, to ensure the position stays in sync.
0x0000 - MOVE_IN_DIRECTION { B direction (n, ne, e, se, s, sw, w, nw, stop), B flags }
0x0001 - MOVE_IN_DIRECTION_FROM { S x, S y, B direction (n, ne, e, se, s, sw, w, nw, stop), B flags }
0x0002 - MOVE_TO_TARGET { S x, S y, B flags }
