diff options
author | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-02-23 19:18:28 +0000 |
---|---|---|
committer | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-02-23 19:18:28 +0000 |
commit | 775404c84c3250225d43f10c4a5363e997618cb2 (patch) | |
tree | 38393287d1554d8e19471f24bc65525c79efeccb /src/net/gameserver | |
parent | fee8461a594770f8ef2bd826868a4ae81270a666 (diff) | |
download | mana-client-775404c84c3250225d43f10c4a5363e997618cb2.tar.gz mana-client-775404c84c3250225d43f10c4a5363e997618cb2.tar.bz2 mana-client-775404c84c3250225d43f10c4a5363e997618cb2.tar.xz mana-client-775404c84c3250225d43f10c4a5363e997618cb2.zip |
Added unregistering, logout_then_exit, switch_character and switch_accountserver.
Diffstat (limited to 'src/net/gameserver')
-rw-r--r-- | src/net/gameserver/gameserver.cpp | 9 | ||||
-rw-r--r-- | src/net/gameserver/gameserver.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/net/gameserver/gameserver.cpp b/src/net/gameserver/gameserver.cpp index 04e5bb08..8f8ad8ac 100644 --- a/src/net/gameserver/gameserver.cpp +++ b/src/net/gameserver/gameserver.cpp @@ -40,3 +40,12 @@ void Net::GameServer::connect(Net::Connection *connection, Net::GameServer::connection->send(msg); } + +void Net::GameServer::logout(bool reconnectAccount) +{ + MessageOut msg(PGMSG_DISCONNECT); + + msg.writeByte((unsigned char) reconnectAccount); + + Net::GameServer::connection->send(msg); +} diff --git a/src/net/gameserver/gameserver.h b/src/net/gameserver/gameserver.h index ee49d7e3..5bf196b6 100644 --- a/src/net/gameserver/gameserver.h +++ b/src/net/gameserver/gameserver.h @@ -33,6 +33,8 @@ namespace Net namespace GameServer { void connect(Net::Connection *connection, const std::string &token); + + void logout(bool reconnectAccount); } } |