Skip to content

Commit

Permalink
Fixed SMSG_ACCOUNT_DATA_TIMES structure for 10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Jan 28, 2025
1 parent efa5408 commit d632e06
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions WowPacketParserModule.V10_0_0_46181/Parsers/AccountDataHandler.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 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);
}
}
}

0 comments on commit d632e06

Please sign in to comment.