private void SetupView(IInventoryView inventoryView) { inventoryView.Initialize(); inventoryView.Display(_itemsRepository.Collection.Values.ToList()); inventoryView.InventoryClosed += HideInventory; inventoryView.Selected += OnItemSelected; inventoryView.Deselected += OnItemDeselected; }
public void ShowInventory(Action hideAction) { _hideAction = hideAction; _inventoryView.Display(_itemsRepository.Collection.Values.ToList()); _inventoryView.Show(); }
public void ShowInventory() { _inventoryView.Show(); _inventoryView.Display(_inventoryModel.GetEquippedItems()); }