Files
CypherCore/Source/Game/Networking/Packets/CollectionPackets.cs
T

23 lines
721 B
C#

// 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
{
class CollectionItemSetFavorite : ClientPacket
{
public CollectionItemSetFavorite(WorldPacket packet) : base(packet) { }
public override void Read()
{
Type = (ItemCollectionType)_worldPacket.ReadUInt32();
Id = _worldPacket.ReadUInt32();
IsFavorite = _worldPacket.HasBit();
}
public ItemCollectionType Type;
public uint Id;
public bool IsFavorite;
}
}