all set piece.CraftingStation to "piece_workbench" internally.
If a custom name is used, it will still be set and not changed.
BepInEx Config
Additionally, the helper provide GetAcceptableValueList() to create configs that are validated by existing names. This will create a human readable list of None, Workbench, Forge, Stonecutter, Cauldron, ArtisanTable, BlackForge, GaldrTable.
var stationConfig = Config.Bind("Section", "Key", nameof(CraftingStations.Workbench), new ConfigDescription("Description", CraftingStations.GetAcceptableValueList()));
Documentation
The documentation is not yet adapted, this will happen in a later PR.
Adds name shortcuts from human-readable names to internal ids.
Helper Classes
Jotunn Config Changes
For example:
can also be written as:
The names on Configs are resolved on set, thus:
all set piece.CraftingStation to "piece_workbench" internally. If a custom name is used, it will still be set and not changed.
BepInEx Config
Additionally, the helper provide
GetAcceptableValueList()
to create configs that are validated by existing names. This will create a human readable list ofNone, Workbench, Forge, Stonecutter, Cauldron, ArtisanTable, BlackForge, GaldrTable
.Documentation
The documentation is not yet adapted, this will happen in a later PR.