diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-23 23:58:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-23 23:58:52 +0300 |
commit | 44420a4212085f1899fb382b507dc1a2f6e2001b (patch) | |
tree | 80b68ae4f5218b3283dbd973653f4d499d482007 /src/net/eathena | |
parent | fa48bfe7dd7ee05c4f7c9142142548e7fda8f05e (diff) | |
download | mv-44420a4212085f1899fb382b507dc1a2f6e2001b.tar.gz mv-44420a4212085f1899fb382b507dc1a2f6e2001b.tar.bz2 mv-44420a4212085f1899fb382b507dc1a2f6e2001b.tar.xz mv-44420a4212085f1899fb382b507dc1a2f6e2001b.zip |
Add packet fields comments in homunculushandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/homunculushandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index 8796621f3..4cefb8899 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -245,7 +245,7 @@ void HomunculusHandler::moveToMaster() const if (!id) return; createOutPacket(CMSG_HOMMERC_MOVE_TO_MASTER); - outMsg.writeInt32(id); + outMsg.writeInt32(id, "homunculus id"); } void HomunculusHandler::move(const int x, const int y) const @@ -254,10 +254,10 @@ void HomunculusHandler::move(const int x, const int y) const if (!id) return; createOutPacket(CMSG_HOMMERC_MOVE_TO); - outMsg.writeInt32(id); + outMsg.writeInt32(id, "homunculus id"); outMsg.writeCoordinates(static_cast<uint16_t>(x), static_cast<uint16_t>(y), - 0U); + 0U, "position"); } void HomunculusHandler::attack(const int targetId, const bool keep) const @@ -266,9 +266,9 @@ void HomunculusHandler::attack(const int targetId, const bool keep) const if (!id) return; createOutPacket(CMSG_HOMMERC_ATTACK); - outMsg.writeInt32(id); - outMsg.writeInt32(targetId); - outMsg.writeInt8(static_cast<int8_t>(keep ? 1 : 0)); + outMsg.writeInt32(id, "homunculus id"); + outMsg.writeInt32(targetId, "target id"); + outMsg.writeInt8(static_cast<int8_t>(keep ? 1 : 0), "keep"); } void HomunculusHandler::feed() const |