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