Skip to content

Commit

Permalink
Fixed SMSG_SET_TIME_ZONE_INFORMATION structure for 10.0 (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliminationzx authored Jan 28, 2025
1 parent d10eb65 commit dfae614
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions WowPacketParserModule.V10_0_0_46181/Parsers/SessionHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using WowPacketParser.Enums;
using WowPacketParser.Misc;
using WowPacketParser.Parsing;

namespace WowPacketParserModule.V10_0_0_46181.Parsers
{
public static class SessionHandler
{
[Parser(Opcode.SMSG_SET_TIME_ZONE_INFORMATION)]
public static void HandleSetTimeZoneInformation(Packet packet)
{
var gameTimeTZLength = packet.ReadBits(7);
var serverTimeTZLength = packet.ReadBits(7);
var serverRegionalTimeTZLength = packet.ReadBits(7);

packet.ReadWoWString("GameTimeTZ", gameTimeTZLength);
packet.ReadWoWString("ServerTimeTZ", serverTimeTZLength);
packet.ReadWoWString("ServerRegionalTimeTZ", serverRegionalTimeTZLength);
}
}
}

0 comments on commit dfae614

Please sign in to comment.