diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-19 17:33:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-19 17:33:16 +0300 |
commit | b7addc0a9a519cf9dcc3e804d9918ce4934a3e83 (patch) | |
tree | eed5cd349f7e9db512fd1e940ed7b070df1c6a35 /src/net/tmwa/charserverhandler.cpp | |
parent | 403792db7d005066273bcbe138afcd1a98b3144c (diff) | |
download | manaplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.gz manaplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.bz2 manaplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.xz manaplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.zip |
Add comments for all output packets header.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index a6c7ab178..512ef6e44 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -258,7 +258,7 @@ void CharServerHandler::chooseCharacter(Net::Character *const character) mSelectedCharacter = character; mCharSelectDialog = nullptr; - MessageOut outMsg(CMSG_CHAR_SELECT); + createOutPacket(CMSG_CHAR_SELECT); outMsg.writeInt8(static_cast<unsigned char>(mSelectedCharacter->slot), "slot"); } @@ -271,7 +271,7 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot, const unsigned char look, const std::vector<int> &stats) const { - MessageOut outMsg(CMSG_CHAR_CREATE); + createOutPacket(CMSG_CHAR_CREATE); outMsg.writeString(name, 24, "name"); for (int i = 0; i < 6; i++) outMsg.writeInt8(static_cast<unsigned char>(stats[i]), "stat"); @@ -295,7 +295,7 @@ void CharServerHandler::deleteCharacter(Net::Character *const character) mSelectedCharacter = character; - MessageOut outMsg(CMSG_CHAR_DELETE); + createOutPacket(CMSG_CHAR_DELETE); outMsg.writeInt32(mSelectedCharacter->dummy->getId(), "id?"); outMsg.writeString("a@a.com", 40, "email"); } @@ -303,7 +303,7 @@ void CharServerHandler::deleteCharacter(Net::Character *const character) void CharServerHandler::switchCharacter() const { // This is really a map-server packet - MessageOut outMsg(CMSG_PLAYER_RESTART); + createOutPacket(CMSG_PLAYER_RESTART); outMsg.writeInt8(1, "flag"); } @@ -317,7 +317,7 @@ void CharServerHandler::connect() mNetwork->disconnect(); mNetwork->connect(charServer); - MessageOut outMsg(CMSG_CHAR_SERVER_CONNECT); + createOutPacket(CMSG_CHAR_SERVER_CONNECT); outMsg.writeInt32(token.account_ID, "account id"); outMsg.writeInt32(token.session_ID1, "session id1"); outMsg.writeInt32(token.session_ID2, "session id2"); |