Table of Contents

Class KingdomPolicyItemVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.KingdomManagement.Policies
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class KingdomPolicyItemVM : KingdomItemVM, IViewModel, INotifyPropertyChanged
Inheritance
KingdomPolicyItemVM
Implements
Inherited Members

Constructors

KingdomPolicyItemVM(PolicyObject, Action<KingdomPolicyItemVM>, Func<PolicyObject, bool>)

public KingdomPolicyItemVM(PolicyObject policy, Action<KingdomPolicyItemVM> onSelect, Func<PolicyObject, bool> getIsPolicyActive)

Parameters

policy PolicyObject
onSelect Action<KingdomPolicyItemVM>
getIsPolicyActive Func<PolicyObject, bool>

Properties

Explanation

[DataSourceProperty]
public string Explanation { get; set; }

Property Value

string

LikelihoodHint

[DataSourceProperty]
public HintViewModel LikelihoodHint { get; set; }

Property Value

HintViewModel

Name

[DataSourceProperty]
public string Name { get; set; }

Property Value

string

Policy

[DataSourceProperty]
public PolicyObject Policy { get; set; }

Property Value

PolicyObject

PolicyAcceptanceText

[DataSourceProperty]
public string PolicyAcceptanceText { get; set; }

Property Value

string

PolicyEffectList

[DataSourceProperty]
public MBBindingList<StringItemWithHintVM> PolicyEffectList { get; set; }

Property Value

MBBindingList<StringItemWithHintVM>

PolicyLikelihood

[DataSourceProperty]
public int PolicyLikelihood { get; set; }

Property Value

int

PolicyLikelihoodText

[DataSourceProperty]
public string PolicyLikelihoodText { get; set; }

Property Value

string

Methods

OnSelect()

protected override void OnSelect()

RefreshValues()

public override void RefreshValues()

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