Table of Contents

Class RecruitVolunteerVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.Recruitment
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class RecruitVolunteerVM : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
RecruitVolunteerVM
Implements
Inherited Members

Constructors

RecruitVolunteerVM(Hero, List<CharacterObject>, Action<RecruitVolunteerVM, RecruitVolunteerTroopVM>, Action<RecruitVolunteerVM, RecruitVolunteerTroopVM>)

public RecruitVolunteerVM(Hero owner, List<CharacterObject> troops, Action<RecruitVolunteerVM, RecruitVolunteerTroopVM> onRecruit, Action<RecruitVolunteerVM, RecruitVolunteerTroopVM> onRemoveFromCart)

Parameters

owner Hero
troops List<CharacterObject>
onRecruit Action<RecruitVolunteerVM, RecruitVolunteerTroopVM>
onRemoveFromCart Action<RecruitVolunteerVM, RecruitVolunteerTroopVM>

Fields

RecruitableNumber

public int RecruitableNumber

Field Value

int

Properties

ButtonIsVisible

[DataSourceProperty]
public bool ButtonIsVisible { get; set; }

Property Value

bool

CanRecruit

[DataSourceProperty]
public bool CanRecruit { get; set; }

Property Value

bool

GoldCost

public int GoldCost { get; }

Property Value

int

Owner

[DataSourceProperty]
public RecruitVolunteerOwnerVM Owner { get; set; }

Property Value

RecruitVolunteerOwnerVM

OwnerHero

public Hero OwnerHero { get; }

Property Value

Hero

QuantityText

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

Property Value

string

RecruitHint

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

Property Value

HintViewModel

RecruitText

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

Property Value

string

Troops

[DataSourceProperty]
public MBBindingList<RecruitVolunteerTroopVM> Troops { get; set; }

Property Value

MBBindingList<RecruitVolunteerTroopVM>

VolunteerTroops

public List<CharacterObject> VolunteerTroops { get; }

Property Value

List<CharacterObject>

Methods

ExecuteRecruit(RecruitVolunteerTroopVM)

public void ExecuteRecruit(RecruitVolunteerTroopVM troop)

Parameters

troop RecruitVolunteerTroopVM

ExecuteRemoveFromCart(RecruitVolunteerTroopVM)

public void ExecuteRemoveFromCart(RecruitVolunteerTroopVM troop)

Parameters

troop RecruitVolunteerTroopVM

OnRecruitMoveToCart(RecruitVolunteerTroopVM)

public void OnRecruitMoveToCart(RecruitVolunteerTroopVM troop)

Parameters

troop RecruitVolunteerTroopVM

OnRecruitRemovedFromCart(RecruitVolunteerTroopVM)

public void OnRecruitRemovedFromCart(RecruitVolunteerTroopVM troop)

Parameters

troop RecruitVolunteerTroopVM

RefreshValues()

public override void RefreshValues()

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