Show / Hide Table of Contents

Class CookingStations

Helper to get existing cooking station names
Inheritance
object
CookingStations
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public static class CookingStations

Properties

Name Description
CookingStation Cooking station
IronCookingStation Iron cooking station
StoneOven Stone oven cooking station

Methods

Name Description
GetAcceptableValueList() Get a BepInEx.Configuration.AcceptableValueList<T> of all cooking station names. This can be used to create a BepInEx.Configuration.ConfigEntry<T> where only valid cooking stations can be selected.

Example:
var stationConfig = Config.Bind("Section", "Key", nameof(CookingStations.CookingStation), new ConfigDescription("Description", CookingStations.GetAcceptableValueList()));
GetInternalName(string) Get the internal name for a cooking station from its human readable name.
GetNames() Gets the human readable name to internal names map
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾