private void Update(long deltaFrames) { var items = _sourceInventory.Items; foreach (var item in items) { if (_destInventory.CanAddItems(item.DefinitionId, 1) && _destInventory.TransferItemsFrom(_sourceInventory, item, 1)) { return; } } }
private void Update(long deltaFrames) { var items = _sourceInventory.Items; foreach (var item in items) { if (_destInventory.CanAddItems(item.DefinitionId, 1) && _destInventory.TransferItemsFrom(_sourceInventory, item, 1)) { return; } } }