Show / Hide Table of Contents

Class PieceCategories

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

Properties

Name Description
All All piece categories
Building Piece 'Building' category
Crafting Piece 'Crafting' category
Feasts Piece 'Feasts' category
Food Piece 'Food' category
Furniture Piece 'Furniture' category
HeavyBuild Piece 'HeavyBuild' category
Mead Piece 'Mead' category
Misc Piece 'Misc' category

Methods

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

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