// // DropPacket.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 drop packet. /// /// The item vnum identifier. /// The drop id. /// The map x. /// The map y. /// The amount of the items on the ground. /// Whether the item is a quest related item. /// UNKNOWN. Seems to be always 0. /// UNKNOWN. Seems to be always -1. [PacketHeader("drop", PacketSource.Server)] [GenerateSerializer(true)] public record DropPacket ( [PacketIndex(0)] int ItemVNum, [PacketIndex(1)] long DropId, [PacketIndex(2)] short X, [PacketIndex(3)] short Y, [PacketIndex(4)] short Amount, [PacketIndex(5)] bool IsQuestRelated, [PacketIndex(6)] byte Mode, [PacketIndex(7)] byte Parameter ) : IPacket;