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