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
PartyScreenLogicpartyVm
PartyVMtroops
TroopRosterindex
inttype
PartyScreenLogic.TroopTypeside
PartyScreenLogic.PartyRosterSideisTroopTransferrable
bool
Fields
EntireStackShortcutKeyText
public static string EntireStackShortcutKeyText
Field Value
FiveStackShortcutKeyText
public static string FiveStackShortcutKeyText
Field Value
IsShiftingDisabled
public static bool IsShiftingDisabled
Field Value
OnFocus
public static Action<PartyCharacterVM> OnFocus
Field Value
OnShift
public static Action<PartyCharacterVM> OnShift
Field Value
OnTransfer
public static Action<PartyCharacterVM, int, int, PartyScreenLogic.PartyRosterSide> OnTransfer
Field Value
ProcessCharacterLock
public static Action<PartyCharacterVM, bool> ProcessCharacterLock
Field Value
SetSelected
public static Action<PartyCharacterVM> SetSelected
Field Value
Side
public readonly PartyScreenLogic.PartyRosterSide Side
Field Value
Type
public readonly PartyScreenLogic.TroopType Type
Field Value
_initIsTroopTransferable
protected readonly bool _initIsTroopTransferable
Field Value
_partyScreenLogic
protected readonly PartyScreenLogic _partyScreenLogic
Field Value
_partyVm
protected readonly PartyVM _partyVm
Field Value
_transferHint
public HintViewModel _transferHint
Field Value
_troopConformityTooltip
public BasicTooltipViewModel _troopConformityTooltip
Field Value
_troopXPTooltip
public BasicTooltipViewModel _troopXPTooltip
Field Value
Properties
AnyUpgradeHasRequirement
[DataSourceProperty]
public bool AnyUpgradeHasRequirement { get; set; }
Property Value
CanTalk
[DataSourceProperty]
public bool CanTalk { get; }
Property Value
Character
public CharacterObject Character { get; set; }
Property Value
Code
[DataSourceProperty]
public ImageIdentifierVM Code { get; set; }
Property Value
CurrentConformity
[DataSourceProperty]
public int CurrentConformity { get; set; }
Property Value
CurrentXP
[DataSourceProperty]
public int CurrentXP { get; set; }
Property Value
ExecutePrisonerHint
[DataSourceProperty]
public BasicTooltipViewModel ExecutePrisonerHint { get; set; }
Property Value
HasEnoughGold
[DataSourceProperty]
public bool HasEnoughGold { get; set; }
Property Value
HasMoreThanTwoUpgrades
[DataSourceProperty]
public bool HasMoreThanTwoUpgrades { get; set; }
Property Value
HeroHealth
[DataSourceProperty]
public int HeroHealth { get; }
Property Value
HeroHealthHint
[DataSourceProperty]
public BasicTooltipViewModel HeroHealthHint { get; set; }
Property Value
Index
[DataSourceProperty]
public int Index { get; set; }
Property Value
IsExecutable
[DataSourceProperty]
public bool IsExecutable { get; set; }
Property Value
IsFormationEnabled
[DataSourceProperty]
public bool IsFormationEnabled { get; set; }
Property Value
IsHero
[DataSourceProperty]
public bool IsHero { get; set; }
Property Value
IsHeroPrisonerOfPlayer
[DataSourceProperty]
public bool IsHeroPrisonerOfPlayer { get; set; }
Property Value
IsHeroWounded
[DataSourceProperty]
public bool IsHeroWounded { get; }
Property Value
IsLocked
[DataSourceProperty]
public bool IsLocked { get; set; }
Property Value
IsMainHero
[DataSourceProperty]
public bool IsMainHero { get; set; }
Property Value
IsPrisoner
[DataSourceProperty]
public bool IsPrisoner { get; set; }
Property Value
IsPrisonerOfPlayer
[DataSourceProperty]
public bool IsPrisonerOfPlayer { get; set; }
Property Value
IsRecruitButtonsHiglighted
[DataSourceProperty]
public bool IsRecruitButtonsHiglighted { get; set; }
Property Value
IsRecruitablePrisoner
[DataSourceProperty]
public bool IsRecruitablePrisoner { get; set; }
Property Value
IsTransferButtonHiglighted
[DataSourceProperty]
public bool IsTransferButtonHiglighted { get; set; }
Property Value
IsTroopRecruitable
[DataSourceProperty]
public bool IsTroopRecruitable { get; set; }
Property Value
IsTroopTransferrable
[DataSourceProperty]
public bool IsTroopTransferrable { get; set; }
Property Value
IsTroopUpgradable
[DataSourceProperty]
public bool IsTroopUpgradable { get; set; }
Property Value
IsUpgradableTroop
[DataSourceProperty]
public bool IsUpgradableTroop { get; set; }
Property Value
LockHint
[DataSourceProperty]
public HintViewModel LockHint { get; set; }
Property Value
MaxConformity
[DataSourceProperty]
public int MaxConformity { get; set; }
Property Value
MaxXP
[DataSourceProperty]
public int MaxXP { get; set; }
Property Value
Name
[DataSourceProperty]
public string Name { get; set; }
Property Value
NumOfReadyToUpgradeTroops
[DataSourceProperty]
public int NumOfReadyToUpgradeTroops { get; set; }
Property Value
NumOfRecruitablePrisoners
[DataSourceProperty]
public int NumOfRecruitablePrisoners { get; set; }
Property Value
NumOfUpgradeableTroops
[DataSourceProperty]
public int NumOfUpgradeableTroops { get; set; }
Property Value
Number
[DataSourceProperty]
public int Number { get; }
Property Value
RecruitMoraleCostText
[DataSourceProperty]
public string RecruitMoraleCostText { get; set; }
Property Value
RecruitPrisonerHint
[DataSourceProperty]
public BasicTooltipViewModel RecruitPrisonerHint { get; set; }
Property Value
StrNumOfRecruitableTroop
[DataSourceProperty]
public string StrNumOfRecruitableTroop { get; set; }
Property Value
StrNumOfUpgradableTroop
[DataSourceProperty]
public string StrNumOfUpgradableTroop { get; set; }
Property Value
StringId
public string StringId { get; }
Property Value
TierIconData
[DataSourceProperty]
public StringItemWithHintVM TierIconData { get; set; }
Property Value
TradeData
[DataSourceProperty]
public PartyTradeVM TradeData { get; set; }
Property Value
TransferAmount
[DataSourceProperty]
public int TransferAmount { get; set; }
Property Value
TransferHint
[DataSourceProperty]
public HintViewModel TransferHint { get; set; }
Property Value
TransferString
[DataSourceProperty]
public string TransferString { get; }
Property Value
Troop
public TroopRosterElement Troop { get; set; }
Property Value
TroopConformityTooltip
[DataSourceProperty]
public BasicTooltipViewModel TroopConformityTooltip { get; set; }
Property Value
TroopID
[DataSourceProperty]
public string TroopID { get; set; }
Property Value
TroopNum
[DataSourceProperty]
public string TroopNum { get; }
Property Value
TroopXPTooltip
[DataSourceProperty]
public BasicTooltipViewModel TroopXPTooltip { get; set; }
Property Value
Troops
public TroopRoster Troops { get; }
Property Value
TypeIconData
[DataSourceProperty]
public StringItemWithHintVM TypeIconData { get; set; }
Property Value
UpgradeCostText
[DataSourceProperty]
public string UpgradeCostText { get; set; }
Property Value
Upgrades
[DataSourceProperty]
public MBBindingList<UpgradeTargetVM> Upgrades { get; set; }
Property Value
WoundedCount
[DataSourceProperty]
public int WoundedCount { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
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
GetNumOfCategoryItemPartyHas(ItemRoster, ItemCategory)
public int GetNumOfCategoryItemPartyHas(ItemRoster items, ItemCategory itemCategory)
Parameters
items
ItemRosteritemCategory
ItemCategory
Returns
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
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).