Inventory.CanCraft
#
Declarationpublic virtual bool CanCraft(string recipeId, Int32 count)
#
ParametersName | Description |
---|---|
recipeId | Id to check |
count | Count to check |
#
DescriptionCheck if a Recipe can be crafted
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { bool result = target.CanCraft(InventoryDatabase.instance.recipes[0].info.id, 1); }
}
#
Declarationpublic virtual bool CanCraft(GDTKRecipe recipe, Int32 count)
#
ParametersName | Description |
---|---|
recipe | Recipe to check |
count | Count to check |
#
DescriptionCheck if a Recipe can be crafted
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { bool result = target.CanCraft(InventoryDatabase.instance.recipes[0], 1); }
}