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
@@ -139,9 +139,11 @@ namespace Game.Networking.Packets
public override void Write()
{
_worldPacket.WriteUInt8((byte)Type);
_worldPacket.WriteInt32((int)Type);
_worldPacket.WriteUInt32(MapID);
_worldPacket.WriteUInt32((uint)DifficultyID);
_worldPacket.WriteInt32(TimeLeft);
_worldPacket.WriteBits(WarningMessage, 8);
_worldPacket.WriteBit(Locked);
_worldPacket.WriteBit(Extended);
_worldPacket.FlushBits();
@@ -150,6 +152,8 @@ namespace Game.Networking.Packets
public InstanceResetWarningType Type;
public uint MapID;
public Difficulty DifficultyID;
public int TimeLeft;
public string WarningMessage; // GlobalStrings tag
public bool Locked;
public bool Extended;
}