Skip to Main Content

BTD_Mod_Helper​.Api​.ModOptions​.ModSettingEnum_T_


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.ModOptions

ModSettingEnum Class

ModSetting for an Enum value

public class ModSettingEnum<T> : BTD_Mod_Helper.Api.ModOptions.ModSetting<T>
    where T : System.Enum

Type parameters

T

The Enum in question

Inheritance System.ObjectModSettingBTD_Mod_Helper.Api.ModOptions.ModSetting<T>  ModSettingEnum

Constructors

ModSettingEnum(T) Constructor

Constructs a new ModSetting for the given value

public ModSettingEnum(T value);

Parameters

value T

Fields

ModSettingEnum.labelFunction Field

A function to apply to each enum value to get the label for it

public Func<T,string> labelFunction;

Field Value

System.Func<T,System.String>

ModSettingEnum.modifyDropdown Field

Action to modify the ModHelperDropdown after it's created

public Action<ModHelperDropdown> modifyDropdown;

Field Value

System.Action<ModHelperDropdown>

Operators

ModSettingEnum.implicit operator ModSettingEnum(T) Operator

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);

Parameters

value T

Returns

BTD_Mod_Helper.Api.ModOptions.ModSettingEnum<T>

ModSettingEnum.implicit operator T(ModSettingEnum) Operator

Gets the current value out of a ModSetting

public static T implicit operator T(BTD_Mod_Helper.Api.ModOptions.ModSettingEnum<T> modSettingEnum);

Parameters

modSettingEnum BTD_Mod_Helper.Api.ModOptions.ModSettingEnum<T>

Returns

T

To learn how to download BTD Mod Helper and install mods, click here