Show / Hide Table of Contents

Method GetAcceptableValueList

| Edit this page View Source

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(',');
Declaration
public static AcceptableValueList<string> GetAcceptableValueList()
Returns
Type Description
AcceptableValueList<string>
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾