From b7addc0a9a519cf9dcc3e804d9918ce4934a3e83 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Sep 2014 17:33:16 +0300 Subject: Add comments for all output packets header. --- src/net/eathena/charserverhandler.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/net/eathena/charserverhandler.cpp') diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index bf1f18004..d0c0247ca 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -232,7 +232,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(mSelectedCharacter->slot)); } @@ -244,7 +244,7 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot, const std::vector &stats A_UNUSED) const { - MessageOut outMsg(CMSG_CHAR_CREATE); + createOutPacket(CMSG_CHAR_CREATE); outMsg.writeString(name, 24, "login"); outMsg.writeInt8(static_cast(slot), "slot"); @@ -259,7 +259,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"); } @@ -267,7 +267,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"); } @@ -281,7 +281,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"); @@ -449,7 +449,7 @@ void CharServerHandler::setNewPincode(const std::string &pin A_UNUSED) { // here need ecript pin with mPinSeed and pin values. -// MessageOut outMsg(CMSG_CHAR_CREATE_PIN); +// createOutPacket(CMSG_CHAR_CREATE_PIN); // outMsg.writeInt32(mPinAccountId, "account id"); // outMsg.writeString(pin, 4, "encrypted pin"); } -- cgit v1.2.3-60-g2f50