diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index d90edfbd..4ee33385 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -672,6 +672,32 @@ void parsePacket(char *data, int recvLength) { << msg.readString() << std::endl; } break; + case GPMSG_BEING_LEAVE: + { + switch (msg.readByte()) { + case OBJECT_PLAYER: + std::cout << "Player " << msg.readLong() << " left map." << std::endl; + break; + default: + std::cout << "Unknown being left map." << std::endl; + } + } break; + + case GPMSG_BEING_ENTER: + { + switch (msg.readByte()) { + case OBJECT_PLAYER: + std::cout << "Player " << msg.readLong() << " entered map" << std::endl; + std::cout << " name: " << msg.readString() << std::endl; + std::cout << " hair style: " << (int)msg.readByte() << std::endl; + std::cout << " hair color: " << (int)msg.readByte() << std::endl; + std::cout << " gender: " << (int)msg.readByte() << std::endl; + break; + default: + std::cout << "Unknown being entered map." << std::endl; + } + } break; + case APMSG_ENTER_WORLD_RESPONSE: { switch (msg.readByte()) { |