summaryrefslogtreecommitdiff
path: root/src/net/eathena/homunculushandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-23 23:58:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-23 23:58:52 +0300
commit44420a4212085f1899fb382b507dc1a2f6e2001b (patch)
tree80b68ae4f5218b3283dbd973653f4d499d482007 /src/net/eathena/homunculushandler.cpp
parentfa48bfe7dd7ee05c4f7c9142142548e7fda8f05e (diff)
downloadplus-44420a4212085f1899fb382b507dc1a2f6e2001b.tar.gz
plus-44420a4212085f1899fb382b507dc1a2f6e2001b.tar.bz2
plus-44420a4212085f1899fb382b507dc1a2f6e2001b.tar.xz
plus-44420a4212085f1899fb382b507dc1a2f6e2001b.zip
Add packet fields comments in homunculushandler.
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r--src/net/eathena/homunculushandler.cpp12
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