-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed SMSG_SET_TIME_ZONE_INFORMATION structure for 10.0 (#920)
- Loading branch information
1 parent
d10eb65
commit dfae614
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
WowPacketParserModule.V10_0_0_46181/Parsers/SessionHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |