Table of Contents

Class SelectionCampaignOptionData

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class SelectionCampaignOptionData : CampaignOptionData, ICampaignOptionData
Inheritance
SelectionCampaignOptionData
Implements
Inherited Members

Constructors

SelectionCampaignOptionData(string, int, CampaignOptionEnableState, Func<float>, Action<float>, List<TextObject>, Func<CampaignOptionDisableStatus>, bool, Func<float, CampaignOptionsDifficultyPresets>, Func<CampaignOptionsDifficultyPresets, float>)

public SelectionCampaignOptionData(string identifier, int priorityIndex, CampaignOptionEnableState enableState, Func<float> getValue, Action<float> setValue, List<TextObject> customSelectionTexts = null, 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>
customSelectionTexts List<TextObject>
getIsDisabledWithReason Func<CampaignOptionDisableStatus>
isRelatedToDifficultyPreset bool
onGetDifficultyPresetFromValue Func<float, CampaignOptionsDifficultyPresets>
onGetValueFromDifficultyPreset Func<CampaignOptionsDifficultyPresets, float>

Properties

Selections

public List<TextObject> Selections { get; }

Property Value

List<TextObject>

Methods

GetDataType()

public override CampaignOptionDataType GetDataType()

Returns

CampaignOptionDataType

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