public void DropItem(ObjectId itemId, Location3D location) { var dropPacket = new DropItemRequest(itemId, location); Send(dropPacket.RawPacket); }
public void DropItem(ObjectId itemId, ObjectId targetContainerId, Location2D targetContainerLocation) { var dropPacket = new DropItemRequest(itemId, targetContainerId, targetContainerLocation); Send(dropPacket.RawPacket); }
/// <inheritdoc/> public void HandlePacket(Player player, Span <byte> packet) { DropItemRequest message = packet; this.dropAction.DropItem(player, message.ItemSlot, new Point(message.TargetX, message.TargetY)); }