Class IncineratorConversionConfig
Used to add new IncineratorConversions to the Incinerator
Inherited Members
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 IncineratorConversionConfig : ConversionConfig
Properties
| Improve this Doc View SourcePriority
Priority of this conversion.
Lower prioritized conversions will be incinerated first when mulitple conversions requirements are met.
Declaration
public int Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ProducedItems
The amount of items one conversion yields. Defaults to 1.
Declaration
public int ProducedItems { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Requirements
List of requirements for this conversion.
Declaration
public List<IncineratorRequirementConfig> Requirements { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IncineratorRequirementConfig> |
RequireOnlyOneIngredient
True: Requires only one of the list of ingredients to be able to produce the result.
False: All of the ingredients are required.
Defaults to false.
Declaration
public bool RequireOnlyOneIngredient { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Station
The name of the station prefab this conversion is added to. Defaults to "incinerator".
Declaration
public override string Station { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceFromJson(String)
Loads a single IncineratorConversionConfig from a JSON string
Declaration
public static IncineratorConversionConfig FromJson(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json | JSON text |
Returns
Type | Description |
---|---|
IncineratorConversionConfig | Loaded IncineratorConversionConfig |
GetIncineratorConversion()
Turns the IncineratorConversionConfig into a Valheim Incinerator.IncineratorConversion item.
Declaration
public Incinerator.IncineratorConversion GetIncineratorConversion()
Returns
Type | Description |
---|---|
Incinerator.IncineratorConversion | The Valheim Incinerator.IncineratorConversion |
ListFromJson(String)
Loads a list of IncineratorConversionConfigs from a JSON string
Declaration
public static List<IncineratorConversionConfig> ListFromJson(string json)
Parameters
Type | Name | Description |
---|---|---|
System.String | json | JSON text |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<IncineratorConversionConfig> | Loaded list of IncineratorConversionConfigs |