diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-23 22:27:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-23 22:27:50 +0300 |
commit | ca342d3fbdc5796c80452bd0a1abbe1ecc7937f0 (patch) | |
tree | c4ef1cc3d38f211be33ce31da1dd3820a80be0fb /src/net/eathena/skillhandler.cpp | |
parent | 117bd5507d5e644107d7a53c9b12d7a2587b69a5 (diff) | |
download | plus-ca342d3fbdc5796c80452bd0a1abbe1ecc7937f0.tar.gz plus-ca342d3fbdc5796c80452bd0a1abbe1ecc7937f0.tar.bz2 plus-ca342d3fbdc5796c80452bd0a1abbe1ecc7937f0.tar.xz plus-ca342d3fbdc5796c80452bd0a1abbe1ecc7937f0.zip |
Add packet fields comments in skillhandler.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 73a3793ef..b62f04440 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -116,19 +116,19 @@ void SkillHandler::useBeing(const int id, const int level, const int beingId) const { createOutPacket(CMSG_SKILL_USE_BEING); - outMsg.writeInt16(static_cast<int16_t>(id)); - outMsg.writeInt16(static_cast<int16_t>(level)); - outMsg.writeInt32(beingId); + outMsg.writeInt16(static_cast<int16_t>(id), "skill id"); + outMsg.writeInt16(static_cast<int16_t>(level), "skill level"); + outMsg.writeInt32(beingId, "target id"); } void SkillHandler::usePos(const int id, const int level, const int x, const int y) const { createOutPacket(CMSG_SKILL_USE_POSITION); - outMsg.writeInt16(static_cast<int16_t>(level)); - outMsg.writeInt16(static_cast<int16_t>(id)); - outMsg.writeInt16(static_cast<int16_t>(x)); - outMsg.writeInt16(static_cast<int16_t>(y)); + outMsg.writeInt16(static_cast<int16_t>(level), "skill level"); + outMsg.writeInt16(static_cast<int16_t>(id), "skill id"); + outMsg.writeInt16(static_cast<int16_t>(x), "x"); + outMsg.writeInt16(static_cast<int16_t>(y), "y"); } void SkillHandler::usePos(const int id, const int level, @@ -146,8 +146,8 @@ void SkillHandler::usePos(const int id, const int level, void SkillHandler::useMap(const int id, const std::string &map) const { createOutPacket(CMSG_SKILL_USE_MAP); - outMsg.writeInt16(static_cast<int16_t>(id)); - outMsg.writeString(map, 16); + outMsg.writeInt16(static_cast<int16_t>(id), "skill id"); + outMsg.writeString(map, 16, "map name"); } void SkillHandler::processPlayerSkills(Net::MessageIn &msg) |