Table of Contents

Class CharacterVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.CharacterDeveloper
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

hero Hero
onPerkSelection Action

Properties

Attributes

[DataSourceProperty]
public MBBindingList<CharacterAttributeItemVM> Attributes { get; set; }

Property Value

MBBindingList<CharacterAttributeItemVM>

CharacterStats

[DataSourceProperty]
public MBBindingList<StringPairItemVM> CharacterStats { get; set; }

Property Value

MBBindingList<StringPairItemVM>

CurrentInspectedAttribute

[DataSourceProperty]
public CharacterAttributeItemVM CurrentInspectedAttribute { get; set; }

Property Value

CharacterAttributeItemVM

CurrentSkill

[DataSourceProperty]
public SkillVM CurrentSkill { get; set; }

Property Value

SkillVM

CurrentTotalSkill

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

Property Value

int

FocusPointsText

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

Property Value

string

Hero

public Hero Hero { get; }

Property Value

Hero

HeroCharacter

[DataSourceProperty]
public HeroViewModel HeroCharacter { get; set; }

Property Value

HeroViewModel

HeroInfoText

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

Property Value

string

HeroLevelText

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

Property Value

string

HeroNameText

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

Property Value

string

IsInspectingAnAttribute

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

Property Value

bool

LevelHint

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

Property Value

HintViewModel

LevelProgressPercentage

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

Property Value

int

LevelProgressText

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

Property Value

string

OrgUnspentAttributePoints

public int OrgUnspentAttributePoints { get; }

Property Value

int

OrgUnspentFocusPoints

public int OrgUnspentFocusPoints { get; }

Property Value

int

PerkSelection

[DataSourceProperty]
public PerkSelectionVM PerkSelection { get; set; }

Property Value

PerkSelectionVM

SkillPointsRequiredForCurrentLevel

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

Property Value

int

SkillPointsRequiredForNextLevel

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

Property Value

int

Skills

[DataSourceProperty]
public MBBindingList<SkillVM> Skills { get; set; }

Property Value

MBBindingList<SkillVM>

Traits

[DataSourceProperty]
public MBBindingList<EncyclopediaTraitItemVM> Traits { get; set; }

Property Value

MBBindingList<EncyclopediaTraitItemVM>

UnspentAttributePoints

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

Property Value

int

UnspentCharacterPoints

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

Property Value

int

Methods

ApplyChanges()

public void ApplyChanges()

CanAddFocusToSkillWithFocusAmount(int)

public bool CanAddFocusToSkillWithFocusAmount(int currentFocusAmount)

Parameters

currentFocusAmount int

Returns

bool

ExecuteStopInspectingCurrentAttribute()

public void ExecuteStopInspectingCurrentAttribute()

GetCharacterDeveloper()

public IHeroDeveloper GetCharacterDeveloper()

Returns

IHeroDeveloper

GetCurrentAttributePoint(CharacterAttribute)

public int GetCurrentAttributePoint(CharacterAttribute attribute)

Parameters

attribute CharacterAttribute

Returns

int

GetNameWithNumOfUnopenedPerks()

public string GetNameWithNumOfUnopenedPerks()

Returns

string

GetNumberOfUnselectedPerks()

public int GetNumberOfUnselectedPerks()

Returns

int

GetRequiredFocusPointsToAddFocusWithCurrentFocus(SkillObject)

public int GetRequiredFocusPointsToAddFocusWithCurrentFocus(SkillObject skill)

Parameters

skill SkillObject

Returns

int

IsSkillMaxAmongOtherSkills(SkillVM)

public bool IsSkillMaxAmongOtherSkills(SkillVM skill)

Parameters

skill SkillVM

Returns

bool

IsThereAnyChanges()

public bool IsThereAnyChanges()

Returns

bool

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).