mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(client): load map in ClientInitializeGame
This commit is contained in:
parent
8d5310c779
commit
f6b717927b
@ -94,10 +94,14 @@ void ClientInitializeGame(uint32_t mapId, C3Vector position) {
|
|||||||
ClientServices::SetMessageHandler(SMSG_TRANSFER_PENDING, TransferPendingHandler, nullptr);
|
ClientServices::SetMessageHandler(SMSG_TRANSFER_PENDING, TransferPendingHandler, nullptr);
|
||||||
ClientServices::SetMessageHandler(SMSG_TRANSFER_ABORTED, TransferAbortedHandler, nullptr);
|
ClientServices::SetMessageHandler(SMSG_TRANSFER_ABORTED, TransferAbortedHandler, nullptr);
|
||||||
ClientServices::SetMessageHandler(SMSG_LOGIN_VERIFY_WORLD, LoginVerifyWorldHandler, nullptr);
|
ClientServices::SetMessageHandler(SMSG_LOGIN_VERIFY_WORLD, LoginVerifyWorldHandler, nullptr);
|
||||||
|
|
||||||
ClientServices::SetMessageHandler(SMSG_KICK_REASON, CGlueMgr::OnKickReasonMsg, nullptr);
|
ClientServices::SetMessageHandler(SMSG_KICK_REASON, CGlueMgr::OnKickReasonMsg, nullptr);
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
auto mapRec = g_mapDB.GetRecord(mapId);
|
||||||
|
CWorld::LoadMap(mapRec->m_directory, position, mapId);
|
||||||
|
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientRegisterConsoleCommands() {
|
void ClientRegisterConsoleCommands() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user