Skip to main content

Merchant.CanCraftInstantly

Declaration#

public virtual bool CanCraftInstantly(GDTKRecipe recipe, Nullable<float> remainingSeconds)

Parameters#

NameDescription
recipeRecipe to check
remainingSecondsSeconds remaining the crafting (if already started)

Description#

Check if a Recipe can be crafted instantly

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target)    {        bool result = target.CanCraftInstantly(InventoryDatabase.instance.recipes[0], 1);    }
}