Core/PacketIO: Updated remaining packet structures to 9.1.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/792721ad6450065ec81da6472c1e2a143ad57341)
This commit is contained in:
@@ -531,6 +531,8 @@ namespace Game.Networking.Packets
|
||||
public int PvpTierID;
|
||||
public int Unused3;
|
||||
public int WeeklyBestWinPvpTierID;
|
||||
public int Unused4;
|
||||
public int Rank;
|
||||
public bool Disqualified;
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
@@ -549,6 +551,8 @@ namespace Game.Networking.Packets
|
||||
data.WriteInt32(PvpTierID);
|
||||
data.WriteInt32(Unused3);
|
||||
data.WriteInt32(WeeklyBestWinPvpTierID);
|
||||
data.WriteInt32(Unused4);
|
||||
data.WriteInt32(Rank);
|
||||
data.WriteBit(Disqualified);
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
@@ -300,6 +300,8 @@ namespace Game.Networking.Packets
|
||||
data.WriteInt32(SeasonBestRating);
|
||||
data.WriteInt32(PvpTierID);
|
||||
data.WriteInt32(WeeklyBestWinPvpTierID);
|
||||
data.WriteInt32(Unused1);
|
||||
data.WriteInt32(Unused2);
|
||||
data.WriteBit(Disqualified);
|
||||
data.FlushBits();
|
||||
}
|
||||
@@ -314,6 +316,8 @@ namespace Game.Networking.Packets
|
||||
public int SeasonBestRating;
|
||||
public int PvpTierID;
|
||||
public int WeeklyBestWinPvpTierID;
|
||||
public int Unused1;
|
||||
public int Unused2;
|
||||
public byte Bracket;
|
||||
public bool Disqualified;
|
||||
}
|
||||
|
||||
@@ -286,9 +286,11 @@ namespace Game.Networking.Packets
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteUInt32(CinematicID);
|
||||
_worldPacket.WritePackedGuid(ConversationGuid);
|
||||
}
|
||||
|
||||
public uint CinematicID;
|
||||
public ObjectGuid ConversationGuid;
|
||||
}
|
||||
|
||||
public class TriggerMovie : ServerPacket
|
||||
|
||||
@@ -54,12 +54,13 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
PartyIndex = _worldPacket.ReadUInt8();
|
||||
ProposedRoles = _worldPacket.ReadUInt32();
|
||||
TargetGUID = _worldPacket.ReadPackedGuid();
|
||||
|
||||
uint targetNameLen = _worldPacket.ReadBits<uint>(9);
|
||||
uint targetRealmLen = _worldPacket.ReadBits<uint>(9);
|
||||
|
||||
ProposedRoles = _worldPacket.ReadUInt32();
|
||||
TargetGUID = _worldPacket.ReadPackedGuid();
|
||||
|
||||
TargetName = _worldPacket.ReadString(targetNameLen);
|
||||
TargetRealm = _worldPacket.ReadString(targetRealmLen);
|
||||
}
|
||||
|
||||
@@ -666,6 +666,7 @@ namespace Game.Networking.Packets
|
||||
data.WriteUInt8((byte)Sex);
|
||||
data.WriteUInt8((byte)ClassID);
|
||||
data.WriteUInt8(Level);
|
||||
data.WriteUInt8(Unused915);
|
||||
data.WriteString(Name);
|
||||
}
|
||||
|
||||
@@ -680,6 +681,7 @@ namespace Game.Networking.Packets
|
||||
public Gender Sex = Gender.None;
|
||||
public Class ClassID = Class.None;
|
||||
public byte Level;
|
||||
public byte Unused915;
|
||||
public DeclinedName DeclinedNames = new();
|
||||
}
|
||||
|
||||
|
||||
@@ -148,10 +148,13 @@ namespace Game.Networking.Packets
|
||||
|
||||
public override void Read()
|
||||
{
|
||||
Name = _worldPacket.ReadString(_worldPacket.ReadBits<uint>(9));
|
||||
uint nameLength = _worldPacket.ReadBits<uint>(9);
|
||||
AccountGUID = _worldPacket.ReadPackedGuid();
|
||||
Name = _worldPacket.ReadString(nameLength);
|
||||
}
|
||||
|
||||
public string Name;
|
||||
public ObjectGuid AccountGUID;
|
||||
}
|
||||
|
||||
public class DelIgnore : ClientPacket
|
||||
|
||||
@@ -413,7 +413,7 @@ namespace Game.Networking.Packets
|
||||
ListingCreatorGuid = data.ReadPackedGuid();
|
||||
Unknown735 = data.ReadPackedGuid();
|
||||
|
||||
byte titleLength = data.ReadBits<byte>(8);
|
||||
byte titleLength = data.ReadBits<byte>(10);
|
||||
byte descriptionLength = data.ReadBits<byte>(11);
|
||||
byte voiceChatLength = data.ReadBits<byte>(8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user