Add TeamSync outbound team create queue

This commit is contained in:
2026-06-12 01:02:13 -04:00
parent 4d893607c2
commit 7526176bb3
3 changed files with 94 additions and 9 deletions
+3
View File
@@ -26,6 +26,7 @@
#include "SendCommands.hh"
#include "StaticGameData.hh"
#include "Text.hh"
#include "TeamSync.hh"
#include "BrutalPeeps.hh"
#include "AccountSync.hh"
@@ -6087,6 +6088,8 @@ static asio::awaitable<void> on_EA_BB(std::shared_ptr<Client> c, Channel::Messag
c->login->account->bb_team_id = team->team_id;
c->login->account->save();
TeamSync::enqueue_team_create(team_name, c->login->account->account_id, player_name);
send_command(c, 0x02EA, 0x00000000);
send_team_metadata_change_notifications(s, team, c->login->account->account_id, TeamMetadataChange::TEAM_CREATED);
}