diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-02 21:25:25 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-02 21:25:25 -0600 |
commit | 4916370e6130bfee7eb9ae486f03391d2214ecf4 (patch) | |
tree | 69311c3f543b538f4cd8e619d367d3ef22f6e43c /src/net/ea/maphandler.cpp | |
parent | 22f19d7a201abe8f6df69b82ebd6dce55c3b1655 (diff) | |
download | mana-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.gz mana-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.bz2 mana-4916370e6130bfee7eb9ae486f03391d2214ecf4.tar.xz mana-4916370e6130bfee7eb9ae486f03391d2214ecf4.zip |
Make eAthena's CharHandler
Also add ping to MapHandler and fill in eAthena's MapHandler's connect
method.
Diffstat (limited to 'src/net/ea/maphandler.cpp')
-rw-r--r-- | src/net/ea/maphandler.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/net/ea/maphandler.cpp b/src/net/ea/maphandler.cpp index fefeac86..d12106d6 100644 --- a/src/net/ea/maphandler.cpp +++ b/src/net/ea/maphandler.cpp @@ -96,9 +96,15 @@ void MapHandler::handleMessage(MessageIn &msg) } } -void MapHandler::connect() +void MapHandler::connect(LoginData *loginData) { - // TODO + // Send login infos + MessageOut outMsg(CMSG_MAP_SERVER_CONNECT); + outMsg.writeInt32(loginData->account_ID); + outMsg.writeInt32(player_node->mCharId); + outMsg.writeInt32(loginData->session_ID1); + outMsg.writeInt32(loginData->session_ID2); + outMsg.writeInt8(loginData->sex); } void MapHandler::mapLoaded(const std::string &mapName) @@ -115,3 +121,9 @@ void MapHandler::quit() { MessageOut outMsg(CMSG_CLIENT_QUIT); } + +void MapHandler::ping(int tick) +{ + MessageOut msg(CMSG_CLIENT_PING); + msg.writeInt32(tick); +} |