-
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_ACCOUNT_DATA_TIMES structure for 10.x
- Loading branch information
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/AccountDataHandler.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 AccountDataHandler | ||
{ | ||
[Parser(Opcode.SMSG_ACCOUNT_DATA_TIMES)] | ||
public static void HandleAccountDataTimes(Packet packet) | ||
{ | ||
packet.ReadPackedGuid128("Guid"); | ||
packet.ReadTime64("ServerTime"); | ||
|
||
var count = ClientVersion.AddedInVersion(ClientVersionBuild.V10_2_6_53840) ? 16 : 15; | ||
|
||
for (var i = 0; i < count; ++i) | ||
packet.ReadTime64($"[{(AccountDataType)i}] Time", i); | ||
} | ||
} | ||
} |