Method GetAcceptableValueList
| Improve this Doc View SourceGetAcceptableValueList()
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:
Example:
var pieceCategoryConfig = Config.Bind("Section", "Key", nameof(PieceCategories.Building), new ConfigDescription("Description", PieceCategories.GetAcceptableValueList()));
Declaration
public static AcceptableValueList<string> GetAcceptableValueList()
Returns
Type | Description |
---|---|
AcceptableValueList<string> |