summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-19 17:33:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-19 17:33:16 +0300
commitb7addc0a9a519cf9dcc3e804d9918ce4934a3e83 (patch)
treeeed5cd349f7e9db512fd1e940ed7b070df1c6a35 /src/net/eathena/charserverhandler.cpp
parent403792db7d005066273bcbe138afcd1a98b3144c (diff)
downloadplus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.gz
plus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.bz2
plus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.tar.xz
plus-b7addc0a9a519cf9dcc3e804d9918ce4934a3e83.zip
Add comments for all output packets header.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp12
1 files changed, 6 insertions, 6 deletions
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<unsigned char>(mSelectedCharacter->slot));
}
@@ -244,7 +244,7 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
const std::vector<int> &stats A_UNUSED)
const
{
- MessageOut outMsg(CMSG_CHAR_CREATE);
+ createOutPacket(CMSG_CHAR_CREATE);
outMsg.writeString(name, 24, "login");
outMsg.writeInt8(static_cast<unsigned char>(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");
}