public void TryMoveAllItemsToLeftInventory() { foreach (var item in RightInventory.GetItems()) { TryMoveItemToLeftInventory(item.Item2); } InventoryBlockChanged?.Invoke(); }
public void RemoveRightInventory() { if (RightInventory != null) { RightInventory.InventoryChanged -= Inventory_InventoryChanged; } RightInventory = null; InventoryBlockChanged?.Invoke(); }
public void TryMoveItemToLeftInventory(int index) { RightInventory.TryMoveItemTo(LeftInventory, index); InventoryBlockChanged?.Invoke(); }
public void SetRightInventory(Inventory inventory) { RightInventory = inventory; RightInventory.InventoryChanged += Inventory_InventoryChanged; InventoryBlockChanged?.Invoke(); }
private void Inventory_InventoryChanged() { InventoryBlockChanged?.Invoke(); }