feat(net): MATCH_REQUEST and MATCH_TRANSFER chat packets and the chat server's MatchUpdate

MATCH_TRANSFER is appended after GUILD_DISBAND (71); the chat ids from
CREATE_TEAM on are pinned.

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 9a4282e6b3
commit e11493008d
8 changed files with 277 additions and 1 deletions

View File

@@ -912,6 +912,21 @@ namespace ClientPackets {
VALIDATE_READ(ReadZone(bitStream, zoneID));
return true;
}
void MatchUpdate::Serialize(RakNet::BitStream& bitStream) const {
TeamGameMsg::Serialize(bitStream);
BitStreamUtils::WriteNameValueText(bitStream, std::u16string(data.begin(), data.end()));
bitStream.Write(type);
}
bool MatchUpdate::Deserialize(RakNet::BitStream& bitStream) {
VALIDATE_READ(TeamGameMsg::Deserialize(bitStream));
std::u16string wide;
VALIDATE_READ(BitStreamUtils::ReadNameValueText(bitStream, wide));
data.assign(wide.begin(), wide.end());
VALIDATE_READ(bitStream.Read(type));
return true;
}
}
namespace ClientPackets {