Skip to main content

Merchant.CanCraft

Declaration#

public virtual bool CanCraft(string recipeId, Int32 count)

Parameters#

NameDescription
recipeIdId to check
countCount to check

Description#

Check if a Recipe can be crafted

Usage#

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

Declaration#

public virtual bool CanCraft(GDTKRecipe recipe, Int32 count)

Parameters#

NameDescription
recipeRecipe to check
countCount to check

Description#

Check if a Recipe can be crafted

Usage#

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