Core/PacketIO: Updated most packet structures to 9.0.1

Port From (https://github.com/TrinityCore/TrinityCore/commit/cab4c87d2d7f6d734ef067d6bf50f4b1d338a7bc)
This commit is contained in:
hondacrx
2020-12-09 14:01:38 -05:00
parent c7d968ea74
commit c46c7ba2dc
65 changed files with 2697 additions and 2217 deletions
@@ -18,6 +18,7 @@
using Framework.Constants;
using Framework.IO;
using Game.Entities;
using System.Collections.Generic;
namespace Game.Networking.Packets
{
@@ -29,13 +30,13 @@ namespace Game.Networking.Packets
{
_worldPacket.WritePackedGuid(PlayerGuid);
_worldPacket.WriteUInt32(ServerTime);
for (int i = 0; i < (int)AccountDataTypes.Max; ++i)
_worldPacket.WriteUInt32(AccountTimes[i]);
foreach (var accounttime in AccountTimes)
_worldPacket.WriteUInt32(accounttime);
}
public ObjectGuid PlayerGuid;
public uint ServerTime = 0;
public uint[] AccountTimes = new uint[(int)AccountDataTypes.Max];
public Array<uint> AccountTimes = new Array<uint>((int)AccountDataTypes.Max);
}
public class ClientCacheVersion : ServerPacket