Class NumericCampaignOptionData
- Namespace
- TaleWorlds.CampaignSystem.ViewModelCollection
- Assembly
- TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class NumericCampaignOptionData : CampaignOptionData, ICampaignOptionData
- Inheritance
-
NumericCampaignOptionData
- Implements
- Inherited Members
Constructors
NumericCampaignOptionData(string, int, CampaignOptionEnableState, Func<float>, Action<float>, float, float, bool, Func<CampaignOptionDisableStatus>, bool, Func<float, CampaignOptionsDifficultyPresets>, Func<CampaignOptionsDifficultyPresets, float>)
public NumericCampaignOptionData(string identifier, int priorityIndex, CampaignOptionEnableState enableState, Func<float> getValue, Action<float> setValue, float minValue, float maxValue, bool isDiscrete, Func<CampaignOptionDisableStatus> getIsDisabledWithReason = null, bool isRelatedToDifficultyPreset = false, Func<float, CampaignOptionsDifficultyPresets> onGetDifficultyPresetFromValue = null, Func<CampaignOptionsDifficultyPresets, float> onGetValueFromDifficultyPreset = null)
Parameters
identifier
stringpriorityIndex
intenableState
CampaignOptionEnableStategetValue
Func<float>setValue
Action<float>minValue
floatmaxValue
floatisDiscrete
boolgetIsDisabledWithReason
Func<CampaignOptionDisableStatus>isRelatedToDifficultyPreset
boolonGetDifficultyPresetFromValue
Func<float, CampaignOptionsDifficultyPresets>onGetValueFromDifficultyPreset
Func<CampaignOptionsDifficultyPresets, float>
Properties
IsDiscrete
public bool IsDiscrete { get; }
Property Value
MaxValue
public float MaxValue { get; }
Property Value
MinValue
public float MinValue { get; }
Property Value
Methods
GetDataType()
public override CampaignOptionDataType GetDataType()
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).