public void DropItemRequest(sbyte slot)
{
Item item;
if (!InventoryItems.TryGetValue(slot, out item))
{
//TODO: send client 'item not found'
Log.WriteLine(LogLevel.Warn, "Client tried to drop non-existing object.");
return;
}
if (Question != null)
{
Log.WriteLine(LogLevel.Debug, "Client is answering another question. Cannot proceed drop.");
return;
}
Question = new Question("Do you want to discard the item?", new QuestionCallback(OnDropResponse), item);
Question.Add("Yes", "No");
Question.Send(this, 500);
}