private static void DropMovedItem(ItemData item, MovedItemsInfo moveInfo)
    {
        if (item.stackID == moveInfo.OriginalStackID)
        {
            if (item.ownerContainer != null)
                item.ownerContainer.Remove(item, true);

            item.stackID = moveInfo.NewStackID;
        }
    }
Esempio n. 2
0
    private static void DropMovedItem(ItemData item, MovedItemsInfo moveInfo)
    {
        if (item.stackID == moveInfo.OriginalStackID)
        {
            if (item.ownerContainer != null)
            {
                item.ownerContainer.Remove(item, true);
            }

            item.stackID = moveInfo.NewStackID;
        }
    }
    private void DropMovedItems(ItemData[] containerItems, MovedItemsInfo moveInfo)
    {
        foreach (ItemData data in containerItems)
        {
            if (data.stackID == moveInfo.OriginalStackID)
            {
                if (data.ownerContainer != null)
                    data.ownerContainer.Remove(data, true);

                data.stackID = moveInfo.NewStackID;

                itemDrop.DropItemIntoWorld(data, TransformForDropPosition.position, DropObjDefaultModel);
            }
        }
    }
Esempio n. 4
0
    private void DropMovedItems(ItemData[] containerItems, MovedItemsInfo moveInfo)
    {
        foreach (ItemData data in containerItems)
        {
            if (data.stackID == moveInfo.OriginalStackID)
            {
                if (data.ownerContainer != null)
                {
                    data.ownerContainer.Remove(data, true);
                }

                data.stackID = moveInfo.NewStackID;

                itemDrop.DropItemIntoWorld(data, TransformForDropPosition.position, DropObjDefaultModel, false);
            }
        }
    }