Merchant.CanCraft
Declaration#
public virtual bool CanCraft(string recipeId, Int32 count)Parameters#
| Name | Description |
|---|---|
| recipeId | Id to check |
| count | Count 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#
| Name | Description |
|---|---|
| recipe | Recipe to check |
| count | Count 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); }
}