//
// ThrowPacket.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NosSmooth.PacketSerializer.Abstractions.Attributes;
namespace NosSmooth.Packets.Server.Maps;
///
/// An item has been thrown from the given position to target position.
///
///
/// Used in raids after boss is killed.
///
/// The vnum of the dropped item.
/// The id of the item.
/// The source x coordinate the item is thrown from.
/// The source y coordinate the item is thrown from.
/// The target x coordinate the item is thrown to.
/// The target y coordinate the item is thrown to.
/// The amount of items thrown.
[PacketHeader("throw", PacketSource.Server)]
[GenerateSerializer(true)]
public record ThrowPacket
(
[PacketIndex(0)]
int ItemVNum,
[PacketIndex(1)]
long DropId,
[PacketIndex(2)]
short SourceX,
[PacketIndex(3)]
short SourceY,
[PacketIndex(4)]
short TargetX,
[PacketIndex(5)]
short TargetY,
[PacketIndex(6)]
int Amount
) : IPacket;