Skip to main content

SmeltingRecipe

A class in Root.Township, Alta.Blacksmithing.

A smelter recipe asset: the items that go in, what comes out and how much fuel it needs. Looked up by hash like other HashedGeneralValue assets.

Constructors​

MemberWhat it is
SmeltingRecipe()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private float durationBacking field for Duration. Defaults to 2.
private ItemCount[] inputBacking field for Input.
private ItemCount[] outputBacking field for Output.

Properties​

MemberWhat it is
float Duration { get; }Fuel the smelter must hold for this recipe to match, and the fuel it then burns. Defaults to 2.
ItemCount[] Input { get; }Items and counts the smelter must contain. The smelter's contents must match these item types exactly.
ItemCount[] Output { get; }Items and counts the smelter produces when the recipe finishes.

Used in​

Members of other types that take, return or hold a SmeltingRecipe: