SmelterUpgrades
A class in Root.Township, Alta.Blacksmithing.
An unlockable set of smelter abilities: extra recipes, metals it can melt for moulds, and a speed bonus. Applied through SmelterUnlockManager.
- Listed in Crafting and making
- Inherits or implements
HashedGeneralValue<SmelterUpgrades> - Derived types
SmelterUpgrades,SmelterUpgrades.Create - Nested types
Create - Documented in Smelting and forging
Constructors
| Member | What it is |
|---|---|
SmelterUpgrades() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private float bonusSmelterSpeed | Backing field for BonusSmelterSpeed, added to the smelter speed multiplier while unlocked. |
private PhysicalMaterial[] physicalMaterials | Backing field for PhysicalMaterials: ingot materials the smelter accepts once unlocked. |
private SmeltingRecipe[] recipes | Backing field for Recipes: smelting recipes unlocked. |
Properties
| Member | What it is |
|---|---|
float BonusSmelterSpeed { get; } | Added to the smelter's speed multiplier while this upgrade is unlocked, and taken off again when it is locked. |
IReadOnlyCollection<PhysicalMaterial> PhysicalMaterials { get; } | Metal materials whose ingots the smelter may pour into moulds once this is unlocked. |
IReadOnlyCollection<SmeltingRecipe> Recipes { get; } | Smelting recipes the smelter can run once this is unlocked. |
Used in
Members of other types that take, return or hold a SmelterUpgrades: