Show / Hide Table of Contents

Class CookingConversionConfig

Used to add new ItemConversions to the CookingStation
Inheritance
System.Object
ConversionConfig
CookingConversionConfig
Inherited Members
ConversionConfig.FromItem
ConversionConfig.ToItem
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public class CookingConversionConfig : ConversionConfig

Properties

| Improve this Doc View Source

CookTime

Amount of time it takes to perform the conversion. Defaults to 10f.
Declaration
public float CookTime { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Station

The name of the station prefab this conversion is added to. Defaults to "piece_cookingstation".
Declaration
public override string Station { get; set; }
Property Value
Type Description
System.String
Overrides
ConversionConfig.Station

Methods

| Improve this Doc View Source

FromJson(String)

Loads a single CookingConversionConfig from a JSON string
Declaration
public static CookingConversionConfig FromJson(string json)
Parameters
Type Name Description
System.String json JSON text
Returns
Type Description
CookingConversionConfig Loaded CookingConversionConfig
| Improve this Doc View Source

GetItemConversion()

Turns the CookingConversionConfig into a Valheim CookingStation.ItemConversion item.
Declaration
public CookingStation.ItemConversion GetItemConversion()
Returns
Type Description
CookingStation.ItemConversion The Valheim CookingStation.ItemConversion
| Improve this Doc View Source

ListFromJson(String)

Loads a list of CookingConversionConfigs from a JSON string
Declaration
public static List<CookingConversionConfig> ListFromJson(string json)
Parameters
Type Name Description
System.String json JSON text
Returns
Type Description
System.Collections.Generic.List<CookingConversionConfig> Loaded list of CookingConversionConfigs

Extension Methods

PrefabExtension.FixReferences(Object)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾