Table of Contents

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 string
priorityIndex int
enableState CampaignOptionEnableState
getValue Func<float>
setValue Action<float>
minValue float
maxValue float
isDiscrete bool
getIsDisabledWithReason Func<CampaignOptionDisableStatus>
isRelatedToDifficultyPreset bool
onGetDifficultyPresetFromValue Func<float, CampaignOptionsDifficultyPresets>
onGetValueFromDifficultyPreset Func<CampaignOptionsDifficultyPresets, float>

Properties

IsDiscrete

public bool IsDiscrete { get; }

Property Value

bool

MaxValue

public float MaxValue { get; }

Property Value

float

MinValue

public float MinValue { get; }

Property Value

float

Methods

GetDataType()

public override CampaignOptionDataType GetDataType()

Returns

CampaignOptionDataType

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).