Beispiel #1
0
        protected void MoveToExistingItem(Droppable cell)
        {
            var itemSlot        = cell.GetSlot();
            var containingCells = FindCells(itemSlot.CurrentItemCode);

            foreach (var containingCell in containingCells)
            {
                if (!containingCell.Equals(cell))
                {
                    itemSlot.Add(containingCell.GetSlot());
                }
            }
        }
Beispiel #2
0
        private void EnableAction(Droppable cell)
        {
            var cellSlot = cell.GetSlot();

            if (cell.Type == Droppable.CellType.TrashBin)
            {
                cellSlot.ClearActions();
            }
            else if (Inventory.ContainerOpen || BaseShopUI.isOpen || CookingEntity.Open)
            {
                cellSlot.SetSelfAction(openBagSlotAction);
            }
            else
            {
                cellSlot.SetUseAction();
            }
        }
Beispiel #3
0
 private void SetAction(Droppable cell)
 {
     cell.GetSlot().SetSelfAction(Inventory.PlaceOnBag);
 }