Inventory.Craft
Declaration#
public virtual void Craft(string recipeId, Int32 count)Parameters#
| Name | Description |
|---|---|
| recipeId | Id to craft |
| count | Count to craft |
Description#
Craft a Recipe
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { target.Craft(InventoryDatabase.instance.recipes[0].info.id, 1); }
}Declaration#
public virtual void Craft(GDTKRecipe recipe, Int32 count)Parameters#
| Name | Description |
|---|---|
| recipe | Recipe to craft |
| count | Count to craft |
Description#
Craft a Recipe
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { target.Craft(InventoryDatabase.instance.recipes[0], 1); }
}