Table of Contents

Class PartyCharacterVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.Party
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class PartyCharacterVM : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
PartyCharacterVM
Implements
Inherited Members

Constructors

PartyCharacterVM(PartyScreenLogic, PartyVM, TroopRoster, int, TroopType, PartyRosterSide, bool)

public PartyCharacterVM(PartyScreenLogic partyScreenLogic, PartyVM partyVm, TroopRoster troops, int index, PartyScreenLogic.TroopType type, PartyScreenLogic.PartyRosterSide side, bool isTroopTransferrable)

Parameters

partyScreenLogic PartyScreenLogic
partyVm PartyVM
troops TroopRoster
index int
type PartyScreenLogic.TroopType
side PartyScreenLogic.PartyRosterSide
isTroopTransferrable bool

Fields

EntireStackShortcutKeyText

public static string EntireStackShortcutKeyText

Field Value

string

FiveStackShortcutKeyText

public static string FiveStackShortcutKeyText

Field Value

string

IsShiftingDisabled

public static bool IsShiftingDisabled

Field Value

bool

OnFocus

public static Action<PartyCharacterVM> OnFocus

Field Value

Action<PartyCharacterVM>

OnShift

public static Action<PartyCharacterVM> OnShift

Field Value

Action<PartyCharacterVM>

OnTransfer

public static Action<PartyCharacterVM, int, int, PartyScreenLogic.PartyRosterSide> OnTransfer

Field Value

Action<PartyCharacterVM, int, int, PartyScreenLogic.PartyRosterSide>

ProcessCharacterLock

public static Action<PartyCharacterVM, bool> ProcessCharacterLock

Field Value

Action<PartyCharacterVM, bool>

SetSelected

public static Action<PartyCharacterVM> SetSelected

Field Value

Action<PartyCharacterVM>

Side

public readonly PartyScreenLogic.PartyRosterSide Side

Field Value

PartyScreenLogic.PartyRosterSide

Type

public readonly PartyScreenLogic.TroopType Type

Field Value

PartyScreenLogic.TroopType

_initIsTroopTransferable

protected readonly bool _initIsTroopTransferable

Field Value

bool

_partyScreenLogic

protected readonly PartyScreenLogic _partyScreenLogic

Field Value

PartyScreenLogic

_partyVm

protected readonly PartyVM _partyVm

Field Value

PartyVM

_transferHint

public HintViewModel _transferHint

Field Value

HintViewModel

_troopConformityTooltip

public BasicTooltipViewModel _troopConformityTooltip

Field Value

BasicTooltipViewModel

_troopXPTooltip

public BasicTooltipViewModel _troopXPTooltip

Field Value

BasicTooltipViewModel

Properties

AnyUpgradeHasRequirement

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

Property Value

bool

CanTalk

[DataSourceProperty]
public bool CanTalk { get; }

Property Value

bool

Character

public CharacterObject Character { get; set; }

Property Value

CharacterObject

Code

[DataSourceProperty]
public ImageIdentifierVM Code { get; set; }

Property Value

ImageIdentifierVM

CurrentConformity

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

Property Value

int

CurrentXP

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

Property Value

int

ExecutePrisonerHint

[DataSourceProperty]
public BasicTooltipViewModel ExecutePrisonerHint { get; set; }

Property Value

BasicTooltipViewModel

HasEnoughGold

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

Property Value

bool

HasMoreThanTwoUpgrades

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

Property Value

bool

HeroHealth

[DataSourceProperty]
public int HeroHealth { get; }

Property Value

int

HeroHealthHint

[DataSourceProperty]
public BasicTooltipViewModel HeroHealthHint { get; set; }

Property Value

BasicTooltipViewModel

Index

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

Property Value

int

IsExecutable

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

Property Value

bool

IsFormationEnabled

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

Property Value

bool

IsHero

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

Property Value

bool

IsHeroPrisonerOfPlayer

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

Property Value

bool

IsHeroWounded

[DataSourceProperty]
public bool IsHeroWounded { get; }

Property Value

bool

IsLocked

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

Property Value

bool

IsMainHero

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

Property Value

bool

IsPrisoner

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

Property Value

bool

IsPrisonerOfPlayer

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

Property Value

bool

IsRecruitButtonsHiglighted

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

Property Value

bool

IsRecruitablePrisoner

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

Property Value

bool

IsTransferButtonHiglighted

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

Property Value

bool

IsTroopRecruitable

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

Property Value

bool

IsTroopTransferrable

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

Property Value

bool

IsTroopUpgradable

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

Property Value

bool

IsUpgradableTroop

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

Property Value

bool

LockHint

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

Property Value

HintViewModel

MaxConformity

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

Property Value

int

MaxXP

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

Property Value

int

Name

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

Property Value

string

NumOfReadyToUpgradeTroops

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

Property Value

int

NumOfRecruitablePrisoners

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

Property Value

int

NumOfUpgradeableTroops

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

Property Value

int

Number

[DataSourceProperty]
public int Number { get; }

Property Value

int

RecruitMoraleCostText

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

Property Value

string

RecruitPrisonerHint

[DataSourceProperty]
public BasicTooltipViewModel RecruitPrisonerHint { get; set; }

Property Value

BasicTooltipViewModel

StrNumOfRecruitableTroop

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

Property Value

string

StrNumOfUpgradableTroop

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

Property Value

string

StringId

public string StringId { get; }

Property Value

string

TierIconData

[DataSourceProperty]
public StringItemWithHintVM TierIconData { get; set; }

Property Value

StringItemWithHintVM

TradeData

[DataSourceProperty]
public PartyTradeVM TradeData { get; set; }

Property Value

PartyTradeVM

TransferAmount

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

Property Value

int

TransferHint

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

Property Value

HintViewModel

TransferString

[DataSourceProperty]
public string TransferString { get; }

Property Value

string

Troop

public TroopRosterElement Troop { get; set; }

Property Value

TroopRosterElement

TroopConformityTooltip

[DataSourceProperty]
public BasicTooltipViewModel TroopConformityTooltip { get; set; }

Property Value

BasicTooltipViewModel

TroopID

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

Property Value

string

TroopNum

[DataSourceProperty]
public string TroopNum { get; }

Property Value

string

TroopXPTooltip

[DataSourceProperty]
public BasicTooltipViewModel TroopXPTooltip { get; set; }

Property Value

BasicTooltipViewModel

Troops

public TroopRoster Troops { get; }

Property Value

TroopRoster

TypeIconData

[DataSourceProperty]
public StringItemWithHintVM TypeIconData { get; set; }

Property Value

StringItemWithHintVM

UpgradeCostText

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

Property Value

string

Upgrades

[DataSourceProperty]
public MBBindingList<UpgradeTargetVM> Upgrades { get; set; }

Property Value

MBBindingList<UpgradeTargetVM>

WoundedCount

[DataSourceProperty]
public int WoundedCount { get; }

Property Value

int

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

ExecuteExecuteTroop()

public void ExecuteExecuteTroop()

ExecuteOpenTroopEncyclopedia()

public void ExecuteOpenTroopEncyclopedia()

ExecuteRecruitTroop()

public void ExecuteRecruitTroop()

ExecuteResetTrade()

public void ExecuteResetTrade()

ExecuteSetFocused()

public void ExecuteSetFocused()

ExecuteSetSelected()

public void ExecuteSetSelected()

ExecuteSetUnfocused()

public void ExecuteSetUnfocused()

ExecuteTalk()

public void ExecuteTalk()

ExecuteTransferSingle()

public void ExecuteTransferSingle()

FocusUpgrade(UpgradeTargetVM)

public void FocusUpgrade(UpgradeTargetVM upgrade)

Parameters

upgrade UpgradeTargetVM

GetHashCode()

public override int GetHashCode()

Returns

int

GetNumOfCategoryItemPartyHas(ItemRoster, ItemCategory)

public int GetNumOfCategoryItemPartyHas(ItemRoster items, ItemCategory itemCategory)

Parameters

items ItemRoster
itemCategory ItemCategory

Returns

int

InitializeUpgrades()

public void InitializeUpgrades()

OnTransferred()

public void OnTransferred()

RecruitAll()

public void RecruitAll()

RefreshValues()

public override void RefreshValues()

SetIsUpgradeButtonHighlighted(bool)

public void SetIsUpgradeButtonHighlighted(bool isHighlighted)

Parameters

isHighlighted bool

ThrowOnPropertyChanged()

public void ThrowOnPropertyChanged()

UpdateRecruitable()

public void UpdateRecruitable()

UpdateTradeData()

public void UpdateTradeData()

Upgrade(int, int)

public void Upgrade(int upgradeIndex, int maxUpgradeCount)

Parameters

upgradeIndex int
maxUpgradeCount int

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