/// <summary>Base constructor for the class</summary> private Setting(SettingType settingType, string label, NitroxPref nitroxPref, Delegate callback) { SettingType = settingType; Label = label; NitroxPref = nitroxPref; Callback = callback; }
/// <summary>Constructor for a List setting</summary> public Setting(string label, NitroxPref nitroxPref, UnityAction <int> callback, string[] listItems) : this(SettingType.LIST, label, nitroxPref, callback) { ListItems = listItems; }
/// <summary>Constructor for a Slider setting</summary> public Setting(string label, NitroxPref nitroxPref, UnityAction <float> callback, float sliderMinValue, float sliderMaxValue, float sliderDefaultValue) : this(SettingType.SLIDER, label, nitroxPref, callback) { SliderMinValue = sliderMinValue; SliderMaxValue = sliderMaxValue; SliderDefaultValue = sliderDefaultValue; }
/// <summary>Constructor for a Toggle setting</summary> public Setting(string label, NitroxPref nitroxPref, UnityAction <bool> callback) : this(SettingType.TOGGLE, label, nitroxPref, callback) { }