using ODMO.Commons.Models.TamerShop;
using ODMO.Commons.Writers;
namespace ODMO.Commons.Packets.PersonalShop
{
public class UnloadConsignedShopPacket : PacketWriter
{
private const int PacketNumber = 1006;
///
/// Hides the target consigned shop on the map.
///
/// The consigned shop to be loaded.
public UnloadConsignedShopPacket(ConsignedShop consignedShop)
{
Type(PacketNumber);
WriteByte(2);
WriteShort(1);
WriteInt64(consignedShop.GeneralHandler);
}
///
/// Hides the target consigned shop on the map.
///
/// The target consigned shop handler.
public UnloadConsignedShopPacket(long handler)
{
Type(PacketNumber);
WriteByte(2);
WriteShort(1);
WriteInt64(handler);
}
///
/// Hides the consigned shop list on the map.
///
/// The consigned shop list to be unloaded.
public UnloadConsignedShopPacket(IList consignedShopList)
{
Type(PacketNumber);
WriteByte(2);
WriteShort((short)consignedShopList.Count);
foreach (var consignedShop in consignedShopList)
WriteInt64(consignedShop.GeneralHandler);
WriteInt(0);
}
}
}