Core/PacketIO: Updated account data packets to 9.1.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/966ae04f02608a42d3903b63772c07f5e83b81c5)
This commit is contained in:
@@ -27,10 +27,15 @@ namespace Framework.Constants
|
||||
PerCharacterMacrosCache = 0x05,
|
||||
PerCharacterLayoutCache = 0x06,
|
||||
PerCharacterChatCache = 0x07,
|
||||
Max = 8,
|
||||
GlobalTtsCache = 8,
|
||||
PerCharacterTtsCache = 9,
|
||||
GlobalFlaggedCache = 10,
|
||||
PerCharacterFlaggedCache = 11,
|
||||
|
||||
GlobalCacheMask = 0x15,
|
||||
PerCharacterCacheMask = 0xEA
|
||||
Max = 12,
|
||||
|
||||
GlobalCacheMask = 0x515,
|
||||
PerCharacterCacheMask = 0xAEA
|
||||
}
|
||||
|
||||
public enum TutorialAction
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
PlayerGuid = _worldPacket.ReadPackedGuid();
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(3);
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(4);
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGuid;
|
||||
@@ -74,7 +74,7 @@ namespace Game.Networking.Packets
|
||||
_worldPacket.WritePackedGuid(Player);
|
||||
_worldPacket.WriteInt64(Time);
|
||||
_worldPacket.WriteUInt32(Size);
|
||||
_worldPacket.WriteBits(DataType, 3);
|
||||
_worldPacket.WriteBits(DataType, 4);
|
||||
|
||||
if (CompressedData == null)
|
||||
_worldPacket.WriteUInt32(0);
|
||||
@@ -102,7 +102,7 @@ namespace Game.Networking.Packets
|
||||
PlayerGuid = _worldPacket.ReadPackedGuid();
|
||||
Time = _worldPacket.ReadInt64();
|
||||
Size = _worldPacket.ReadUInt32();
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(3);
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(4);
|
||||
|
||||
uint compressedSize = _worldPacket.ReadUInt32();
|
||||
if (compressedSize != 0)
|
||||
|
||||
Reference in New Issue
Block a user