Aura.Channel.World.Trade.TradeItems C# (CSharp) Method

TradeItems() private static method

Moves all items from one creature's trade window to another's inventory.
private static TradeItems ( Creature from, Creature to ) : void
from Aura.Channel.World.Entities.Creature
to Aura.Channel.World.Entities.Creature
return void
		private static void TradeItems(Creature from, Creature to)
		{
			var items = from.Inventory.GetItems(a => a.Info.Pocket == Pocket.Trade);
			foreach (var item in items)
			{
				from.Inventory.Remove(item);
				to.Inventory.Add(new Item(item), true);
			}
		}