Core/PacketIO: Updated to 11.0.0

Port From (https://github.com/TrinityCore/TrinityCore/commit/e59eef5432c7b70679d33f4911c88d0f7d75fd39)
This commit is contained in:
Hondacrx
2024-09-02 18:44:55 -04:00
parent bd0d40fa13
commit f38ad4607e
74 changed files with 4980 additions and 3595 deletions
@@ -177,7 +177,7 @@ namespace Game.Networking.Packets
_worldPacket.WriteUInt64(EventID);
_worldPacket.WriteUInt8((byte)GetEventType);
_worldPacket.WriteInt32(TextureID);
_worldPacket.WriteUInt32((uint)Flags);
_worldPacket.WriteUInt16((ushort)Flags);
Date.Write(_worldPacket);
LockDate.Write(_worldPacket);
_worldPacket.WriteUInt64(EventGuildID);
@@ -216,7 +216,7 @@ namespace Game.Networking.Packets
{
_worldPacket.WriteUInt64(EventID);
Date.Write(_worldPacket);
_worldPacket.WriteUInt32((uint)Flags);
_worldPacket.WriteUInt16((ushort)Flags);
_worldPacket.WriteUInt8((byte)EventType);
_worldPacket.WriteInt32(TextureID);
_worldPacket.WriteUInt64(EventClubID);
@@ -229,6 +229,7 @@ namespace Game.Networking.Packets
_worldPacket.WritePackedGuid(OwnerGuid);
_worldPacket.WriteBits(EventName.GetByteCount(), 8);
_worldPacket.WriteBit(Unknown_1100);
_worldPacket.FlushBits();
_worldPacket.WriteString(EventName);
}
@@ -245,6 +246,7 @@ namespace Game.Networking.Packets
public CalendarEventType EventType;
public CalendarModerationRank ModeratorStatus;
public string EventName;
public bool Unknown_1100;
}
class CalendarInvitePkt : ClientPacket
@@ -390,7 +392,7 @@ namespace Game.Networking.Packets
OriginalDate.Write(_worldPacket);
Date.Write(_worldPacket);
LockDate.Write(_worldPacket);
_worldPacket.WriteUInt32((uint)Flags);
_worldPacket.WriteUInt16((ushort)Flags);
_worldPacket.WriteInt32(TextureID);
_worldPacket.WriteUInt8((byte)EventType);
@@ -794,7 +796,7 @@ namespace Game.Networking.Packets
TextureID = data.ReadUInt32();
Time = new();
Time.Read(data);
Flags = data.ReadUInt32();
Flags = data.ReadUInt16();
byte titleLen = data.ReadBits<byte>(8);
ushort descLen = data.ReadBits<ushort>(11);
@@ -811,7 +813,7 @@ namespace Game.Networking.Packets
public byte EventType;
public uint TextureID;
public WowTime Time;
public uint Flags;
public ushort Flags;
}
struct CalendarSendCalendarInviteInfo
@@ -859,7 +861,7 @@ namespace Game.Networking.Packets
data.WriteUInt64(EventID);
data.WriteUInt8((byte)EventType);
Date.Write(data);
data.WriteUInt32((uint)Flags);
data.WriteUInt16((ushort)Flags);
data.WriteInt32(TextureID);
data.WriteUInt64(EventClubID);
data.WritePackedGuid(OwnerGuid);