Show / Hide Table of Contents

Method GetAcceptableValueList

| Edit this page View Source

GetAcceptableValueList()

Get a BepInEx.Configuration.AcceptableValueList<T> of all crafting station names. This can be used to create a BepInEx.Configuration.ConfigEntry<T> where only valid crafting stations can be selected.

Example:
var stationConfig = Config.Bind("Section", "Key", nameof(CraftingStations.Workbench), new ConfigDescription("Description", CraftingStations.GetAcceptableValueList()));
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
☀
☾