Inventory.IsRecipeKnown
Declaration#
public virtual bool IsRecipeKnown(GDTKRecipe recipe)Parameters#
| Name | Description |
|---|---|
| recipe | Recipe to check |
Description#
Get if a Recipe is known to this inventory
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { bool result = target.IsRecipeKnown(InventoryDatabase.instance.recipes[0]); }
}