Show / Hide Table of Contents

Class PieceTables

Helper to get existing piece table names
Inheritance
object
PieceTables
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 PieceTables

Properties

Name Description
Cultivator Cultivator piece table
Hammer Hammer piece table
Hoe Hoe piece table
ServingTray Serving Tray piece table

Methods

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

Example:
var pieceTableConfig = Config.Bind("Section", "Key", nameof(PieceTables.Hammer), new ConfigDescription("Description", PieceTables.GetAcceptableValueList()));
GetInternalName(string) Get the internal name for a piece table 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
☀
☾