Class CharacterVM
- Assembly
- TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class CharacterVM : ViewModel, IViewModel, INotifyPropertyChanged
- Inheritance
-
CharacterVM
- Implements
- Inherited Members
Constructors
CharacterVM(Hero, Action)
public CharacterVM(Hero hero, Action onPerkSelection)
Parameters
Properties
Attributes
[DataSourceProperty]
public MBBindingList<CharacterAttributeItemVM> Attributes { get; set; }
Property Value
CharacterStats
[DataSourceProperty]
public MBBindingList<StringPairItemVM> CharacterStats { get; set; }
Property Value
CurrentInspectedAttribute
[DataSourceProperty]
public CharacterAttributeItemVM CurrentInspectedAttribute { get; set; }
Property Value
CurrentSkill
[DataSourceProperty]
public SkillVM CurrentSkill { get; set; }
Property Value
CurrentTotalSkill
[DataSourceProperty]
public int CurrentTotalSkill { get; set; }
Property Value
FocusPointsText
[DataSourceProperty]
public string FocusPointsText { get; set; }
Property Value
Hero
public Hero Hero { get; }
Property Value
HeroCharacter
[DataSourceProperty]
public HeroViewModel HeroCharacter { get; set; }
Property Value
HeroInfoText
[DataSourceProperty]
public string HeroInfoText { get; set; }
Property Value
HeroLevelText
[DataSourceProperty]
public string HeroLevelText { get; set; }
Property Value
HeroNameText
[DataSourceProperty]
public string HeroNameText { get; set; }
Property Value
IsInspectingAnAttribute
[DataSourceProperty]
public bool IsInspectingAnAttribute { get; set; }
Property Value
LevelHint
[DataSourceProperty]
public HintViewModel LevelHint { get; set; }
Property Value
LevelProgressPercentage
[DataSourceProperty]
public int LevelProgressPercentage { get; set; }
Property Value
LevelProgressText
[DataSourceProperty]
public string LevelProgressText { get; set; }
Property Value
OrgUnspentAttributePoints
public int OrgUnspentAttributePoints { get; }
Property Value
OrgUnspentFocusPoints
public int OrgUnspentFocusPoints { get; }
Property Value
PerkSelection
[DataSourceProperty]
public PerkSelectionVM PerkSelection { get; set; }
Property Value
SkillPointsRequiredForCurrentLevel
[DataSourceProperty]
public int SkillPointsRequiredForCurrentLevel { get; set; }
Property Value
SkillPointsRequiredForNextLevel
[DataSourceProperty]
public int SkillPointsRequiredForNextLevel { get; set; }
Property Value
Skills
[DataSourceProperty]
public MBBindingList<SkillVM> Skills { get; set; }
Property Value
Traits
[DataSourceProperty]
public MBBindingList<EncyclopediaTraitItemVM> Traits { get; set; }
Property Value
UnspentAttributePoints
[DataSourceProperty]
public int UnspentAttributePoints { get; set; }
Property Value
UnspentCharacterPoints
[DataSourceProperty]
public int UnspentCharacterPoints { get; set; }
Property Value
Methods
ApplyChanges()
public void ApplyChanges()
CanAddFocusToSkillWithFocusAmount(int)
public bool CanAddFocusToSkillWithFocusAmount(int currentFocusAmount)
Parameters
currentFocusAmount
int
Returns
ExecuteStopInspectingCurrentAttribute()
public void ExecuteStopInspectingCurrentAttribute()
GetCharacterDeveloper()
public IHeroDeveloper GetCharacterDeveloper()
Returns
GetCurrentAttributePoint(CharacterAttribute)
public int GetCurrentAttributePoint(CharacterAttribute attribute)
Parameters
attribute
CharacterAttribute
Returns
GetNameWithNumOfUnopenedPerks()
public string GetNameWithNumOfUnopenedPerks()
Returns
GetNumberOfUnselectedPerks()
public int GetNumberOfUnselectedPerks()
Returns
GetRequiredFocusPointsToAddFocusWithCurrentFocus(SkillObject)
public int GetRequiredFocusPointsToAddFocusWithCurrentFocus(SkillObject skill)
Parameters
skill
SkillObject
Returns
IsSkillMaxAmongOtherSkills(SkillVM)
public bool IsSkillMaxAmongOtherSkills(SkillVM skill)
Parameters
skill
SkillVM
Returns
IsThereAnyChanges()
public bool IsThereAnyChanges()
Returns
OnFinalize()
public override void OnFinalize()
RefreshCharacterValues()
public void RefreshCharacterValues()
RefreshPerksOfSkill(SkillObject)
public void RefreshPerksOfSkill(SkillObject skill)
Parameters
skill
SkillObject
RefreshValues()
public override void RefreshValues()
ResetChanges(bool)
public void ResetChanges(bool isCancel)
Parameters
isCancel
bool
SetCurrentSkill(SkillVM)
public void SetCurrentSkill(SkillVM skill)
Parameters
skill
SkillVM
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).