Skip to main content

Merchant.Craft

Declaration#

public virtual void Craft(string recipeId, Int32 count)

Parameters#

NameDescription
recipeIdId to craft
countCount to craft

Description#

Craft a Recipe

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target)    {        target.Craft(InventoryDatabase.instance.recipes[0].info.id, 1);    }
}

Declaration#

public virtual void Craft(GDTKRecipe recipe, Int32 count)

Parameters#

NameDescription
recipeRecipe to craft
countCount to craft

Description#

Craft a Recipe

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target)    {        target.Craft(InventoryDatabase.instance.recipes[0], 1);    }
}