server-master/srcs/_plugins/WingsEmu.Plugins.PacketHandling/Game/Inventory/PutPacketHandler.cs
2026-02-10 18:21:30 +01:00

14 lines
No EOL
509 B
C#

using System.Threading.Tasks;
using WingsEmu.Game.Inventory.Event;
using WingsEmu.Game.Networking;
using WingsEmu.Packets.ClientPackets;
namespace WingsEmu.Plugins.PacketHandling.Game.Inventory;
public class PutPacketHandler : GenericGamePacketHandlerBase<PutPacket>
{
protected override async Task HandlePacketAsync(IClientSession session, PutPacket putPacket)
{
await session.EmitEventAsync(new InventoryDropItemEvent(putPacket.InventoryType, putPacket.Slot, putPacket.Amount));
}
}