Show / Hide Table of Contents

Class PieceUsages

Helper to get existing piece usage tag names
Inheritance
object
PieceUsages
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 PieceUsages

Properties

Name Description
Architecture Piece 'Architecture' usage tag
Building Piece 'Building' usage tag
Crafting Piece 'Crafting' usage tag
Decor Piece 'Decor' usage tag
Defense Piece 'Defense' usage tag
Doors Piece 'Doors' usage tag
Feasts Piece 'Feasts' usage tag
Floor Piece 'Floor' usage tag
Food Piece 'Food' usage tag
Furniture Piece 'Furniture' usage tag
Lighting Piece 'Lighting' usage tag
Meads Piece 'Meads' usage tag
Misc Piece 'Misc' usage tag
Roof Piece 'Roof' usage tag
Seasonal Piece 'Seasonal' usage tag
Stacks Piece 'Stacks' usage tag
Stairs Piece 'Stairs' usage tag
Storage Piece 'Storage' usage tag
Transport Piece 'Transport' usage tag
Wall Piece 'Wall' usage tag

Methods

Name Description
GetAcceptableValueList() Get a AcceptableValueList<T> of all piece usage tag names.
Since a piece can have any number of tags, store them as one comma separated string Example:
var pieceUsageConfig = Config.Bind("Piece", "Hammer Usages", $"{PieceUsages.Storage},{PieceUsages.Doors}", $"Comma separated usage tags.\n{PieceUsages.GetAcceptableValueList().ToDescriptionString()}");
pieceConfig.Usage = pieceUsageConfig.Value.Split(',');
GetInternalName(string) Get the internal name for a piece usage tag 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
☀
☾