A class in Root.Township, the global namespace.
Dock on a smelter that unlocks recipes while a recipe unlock item sits in it. Server only.
Constructors
| Member | What it is |
|---|
SmelterRecipeUnlock() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
Properties
| Member | What it is |
|---|
PickupDock Dock { get; } | The dock the unlock item goes in. |
Methods
| Member | What it is |
|---|
void RefreshUnlock() | Applies the current unlock to the smelter's unlock manager again. |
3 private and internal methods
| Member | What it is |
|---|
private void AddUnlock(Interactor interactor, Pickup pickup, PickupDock dock) | Server: when an item docks, reads its ItemSmelterRecipeUnlock and unlocks it. |
private void Awake() | Server: hooks the dock's docked and undocked events. |
private void RemoveRecipes(Interactor interactor, Pickup pickup, PickupDock dock) | Server: when the item leaves, locks its recipes again. |
Used in
Members of other types that take, return or hold a SmelterRecipeUnlock: