Table of Contents

Class CharacterViewModel

Namespace
TaleWorlds.Core.ViewModelCollection
Assembly
TaleWorlds.Core.ViewModelCollection.dll
public class CharacterViewModel : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
CharacterViewModel
Implements
Derived
Inherited Members

Constructors

CharacterViewModel()

public CharacterViewModel()

CharacterViewModel(StanceTypes)

public CharacterViewModel(CharacterViewModel.StanceTypes stance = StanceTypes.None)

Parameters

stance CharacterViewModel.StanceTypes

Fields

OnCustomAnimationFinished

public static Action<CharacterViewModel> OnCustomAnimationFinished

Field Value

Action<CharacterViewModel>

_bannerCode

protected string _bannerCode

Field Value

string

_equipment

protected Equipment _equipment

Field Value

Equipment

Properties

ArmorColor1

[DataSourceProperty]
public uint ArmorColor1 { get; set; }

Property Value

uint

ArmorColor2

[DataSourceProperty]
public uint ArmorColor2 { get; set; }

Property Value

uint

BannerCodeText

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

Property Value

string

BodyProperties

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

Property Value

string

CharStringId

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

Property Value

string

CustomAnimation

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

Property Value

string

CustomAnimationProgressRatio

[DataSourceProperty]
public float CustomAnimationProgressRatio { get; set; }

Property Value

float

CustomAnimationWaitDuration

[DataSourceProperty]
public float CustomAnimationWaitDuration { get; set; }

Property Value

float

EquipmentCode

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

Property Value

string

HasMount

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

Property Value

bool

IdleAction

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

Property Value

string

IdleFaceAnim

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

Property Value

string

IsFemale

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

Property Value

bool

IsHidden

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

Property Value

bool

IsPlayingCustomAnimations

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

Property Value

bool

LeftHandWieldedEquipmentIndex

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

Property Value

int

MountCreationKey

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

Property Value

string

Race

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

Property Value

int

RightHandWieldedEquipmentIndex

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

Property Value

int

ShouldLoopCustomAnimation

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

Property Value

bool

StanceIndex

[DataSourceProperty]
public int StanceIndex { get; }

Property Value

int

Methods

ExecuteEquipWeaponAtIndex(EquipmentIndex, bool)

public void ExecuteEquipWeaponAtIndex(EquipmentIndex index, bool isLeftHand)

Parameters

index EquipmentIndex
isLeftHand bool

ExecuteStartCustomAnimation(string, bool, float)

public void ExecuteStartCustomAnimation(string animation, bool loop = false, float loopInterval = 0)

Parameters

animation string
loop bool
loopInterval float

ExecuteStopCustomAnimation()

public void ExecuteStopCustomAnimation()

FillFrom(BasicCharacterObject, int)

public void FillFrom(BasicCharacterObject character, int seed = -1)

Parameters

character BasicCharacterObject
seed int

FillFrom(CharacterViewModel, int)

public void FillFrom(CharacterViewModel characterViewModel, int seed = -1)

Parameters

characterViewModel CharacterViewModel
seed int

SetEquipment(Equipment)

public virtual void SetEquipment(Equipment equipment)

Parameters

equipment Equipment

SetEquipment(EquipmentIndex, EquipmentElement)

public void SetEquipment(EquipmentIndex index, EquipmentElement item)

Parameters

index EquipmentIndex
item EquipmentElement

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