feat(chat): keep activity lobbies of every world and start their instances through master

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 04:11:59 -05:00
parent 4a7cac4f35
commit 2ae086d933
5 changed files with 180 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
#include "dConfig.h"
#include "MessageType/Chat.h"
#include "TeamContainer.h"
#include "ChatMatchmaking.h"
#include "ChatGuilds.h"
#include "GuildManager.h"
@@ -58,6 +59,9 @@ void PlayerContainer::InsertPlayer(const ChatPackets::LoginSessionNotify& notify
return;
}
// Loaded into a world (a new one when changing zones): a lobby they waited in on their last world is left
ChatMatchmaking::PlayerLeftWorld(playerId);
auto isLogin = !m_Players.contains(playerId);
auto& data = m_Players[playerId];
data = PlayerData();