Core/PacketIO: Update some files

Port From (https://github.com/TrinityCore/TrinityCore/commit/76352cb391b4ff239ef70ff85ede4f09fcffc069)
This commit is contained in:
Hondacrx
2025-06-15 20:24:24 -04:00
parent 56e3f80366
commit f105edae7c
9 changed files with 43 additions and 37 deletions
@@ -1,29 +1,23 @@
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using Framework.Constants;
namespace Game.Networking.Packets
{
public enum CollectionType
{
None = -1,
Toybox = 1,
Appearance = 3,
TransmogSet = 4
}
class CollectionItemSetFavorite : ClientPacket
{
public CollectionItemSetFavorite(WorldPacket packet) : base(packet) { }
public override void Read()
{
Type = (CollectionType)_worldPacket.ReadUInt32();
Type = (ItemCollectionType)_worldPacket.ReadUInt32();
Id = _worldPacket.ReadUInt32();
IsFavorite = _worldPacket.HasBit();
}
public CollectionType Type;
public ItemCollectionType Type;
public uint Id;
public bool IsFavorite;
}
}
}