Esempio n. 1
0
        public void DropItem(ObjectId itemId, Location3D location)
        {
            var dropPacket = new DropItemRequest(itemId, location);

            Send(dropPacket.RawPacket);
        }
Esempio n. 2
0
        public void DropItem(ObjectId itemId, ObjectId targetContainerId, Location2D targetContainerLocation)
        {
            var dropPacket = new DropItemRequest(itemId, targetContainerId, targetContainerLocation);

            Send(dropPacket.RawPacket);
        }
Esempio n. 3
0
        /// <inheritdoc/>
        public void HandlePacket(Player player, Span <byte> packet)
        {
            DropItemRequest message = packet;

            this.dropAction.DropItem(player, message.ItemSlot, new Point(message.TargetX, message.TargetY));
        }