Core/PacketIO: Update opcodes and packet structures to 8.2.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/ee2e49429f4383732b4e0f39b493470b9c1dd10c)
This commit is contained in:
hondacrx
2019-10-28 14:33:43 -04:00
parent 1e2ce61e5c
commit c6e53b2ba7
34 changed files with 1792 additions and 1280 deletions
+4 -3
View File
@@ -559,7 +559,6 @@ namespace Game.Network.Packets
RankID = _worldPacket.ReadInt32();
RankOrder = _worldPacket.ReadInt32();
Flags = _worldPacket.ReadUInt32();
OldFlags = _worldPacket.ReadUInt32();
WithdrawGoldLimit = _worldPacket.ReadUInt32();
for (byte i = 0; i < GuildConst.MaxBankTabs; i++)
@@ -572,6 +571,8 @@ namespace Game.Network.Packets
uint rankNameLen = _worldPacket.ReadBits<uint>(7);
RankName = _worldPacket.ReadString(rankNameLen);
OldFlags = _worldPacket.ReadUInt32();
}
public int RankID;
@@ -1445,7 +1446,7 @@ namespace Game.Network.Packets
{
public void Write(WorldPacket data)
{
data.WriteUInt32(RankID);
data.WriteUInt8(RankID);
data.WriteUInt32(RankOrder);
data.WriteUInt32(Flags);
data.WriteUInt32(WithdrawGoldLimit);
@@ -1460,7 +1461,7 @@ namespace Game.Network.Packets
data.WriteString(RankName);
}
public uint RankID;
public byte RankID;
public uint RankOrder;
public uint Flags;
public uint WithdrawGoldLimit;