mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user