Method GetAcceptableValueList
| Improve this Doc View SourceGetAcceptableValueList()
Get a BepInEx.Configuration.AcceptableValueList<T> of all smelter names.
This can be used to create a BepInEx.Configuration.ConfigEntry<T> where only valid smelter can be selected.
Example:
Example:
var smelterConfig = Config.Bind("Section", "Key", nameof(Smelters.Smelter), new ConfigDescription("Description", Smelters.GetAcceptableValueList()));
Declaration
public static AcceptableValueList<string> GetAcceptableValueList()
Returns
Type | Description |
---|---|
AcceptableValueList<string> |