Table of Contents
ModSetting for an Enum value
public class ModSettingEnum<T> : BTD_Mod_Helper.Api.ModOptions.ModSetting<T>
where T : System.Enum
T
The Enum in question
Inheritance System.Object ModSetting BTD_Mod_Helper.Api.ModOptions.ModSetting<T> ModSettingEnum
Constructs a new ModSetting for the given value
public ModSettingEnum(T value);
value
T
A function to apply to each enum value to get the label for it
public Func<T,string> labelFunction;
Action to modify the ModHelperDropdown after it's created
public Action<ModHelperDropdown> modifyDropdown;
System.Action<ModHelperDropdown>
Constructs a new ModSetting with the given value as default
public static BTD_Mod_Helper.Api.ModOptions.ModSettingEnum<T> implicit operator ModSettingEnum<T>(T value);
value
T
BTD_Mod_Helper.Api.ModOptions.ModSettingEnum<T>
Gets the current value out of a ModSetting
public static T implicit operator T(BTD_Mod_Helper.Api.ModOptions.ModSettingEnum<T> modSettingEnum);
modSettingEnum
BTD_Mod_Helper.Api.ModOptions.ModSettingEnum<T>