/// <summary> /// Add an item to the Player's bag /// </summary> /// <param name="Name">Name of the item</param> public void AddToPlayerBag(string Name) { foreach (Player.XMLPlayer.Item obj in lstWait) { if (obj.name == Name) { player.AddToBag(obj); lstWait.Remove(obj); return; } } }