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
stanceCharacterViewModel.StanceTypes
Fields
OnCustomAnimationFinished
public static Action<CharacterViewModel> OnCustomAnimationFinished
Field Value
_bannerCode
protected string _bannerCode
Field Value
_equipment
protected Equipment _equipment
Field Value
Properties
ArmorColor1
[DataSourceProperty]
public uint ArmorColor1 { get; set; }
Property Value
ArmorColor2
[DataSourceProperty]
public uint ArmorColor2 { get; set; }
Property Value
BannerCodeText
[DataSourceProperty]
public string BannerCodeText { get; set; }
Property Value
BodyProperties
[DataSourceProperty]
public string BodyProperties { get; set; }
Property Value
CharStringId
[DataSourceProperty]
public string CharStringId { get; set; }
Property Value
CustomAnimation
[DataSourceProperty]
public string CustomAnimation { get; set; }
Property Value
CustomAnimationProgressRatio
[DataSourceProperty]
public float CustomAnimationProgressRatio { get; set; }
Property Value
CustomAnimationWaitDuration
[DataSourceProperty]
public float CustomAnimationWaitDuration { get; set; }
Property Value
EquipmentCode
[DataSourceProperty]
public string EquipmentCode { get; set; }
Property Value
HasMount
[DataSourceProperty]
public bool HasMount { get; set; }
Property Value
IdleAction
[DataSourceProperty]
public string IdleAction { get; set; }
Property Value
IdleFaceAnim
[DataSourceProperty]
public string IdleFaceAnim { get; set; }
Property Value
IsFemale
[DataSourceProperty]
public bool IsFemale { get; set; }
Property Value
IsHidden
[DataSourceProperty]
public bool IsHidden { get; set; }
Property Value
IsPlayingCustomAnimations
[DataSourceProperty]
public bool IsPlayingCustomAnimations { get; set; }
Property Value
LeftHandWieldedEquipmentIndex
[DataSourceProperty]
public int LeftHandWieldedEquipmentIndex { get; set; }
Property Value
MountCreationKey
[DataSourceProperty]
public string MountCreationKey { get; set; }
Property Value
Race
[DataSourceProperty]
public int Race { get; set; }
Property Value
RightHandWieldedEquipmentIndex
[DataSourceProperty]
public int RightHandWieldedEquipmentIndex { get; set; }
Property Value
ShouldLoopCustomAnimation
[DataSourceProperty]
public bool ShouldLoopCustomAnimation { get; set; }
Property Value
StanceIndex
[DataSourceProperty]
public int StanceIndex { get; }
Property Value
Methods
ExecuteEquipWeaponAtIndex(EquipmentIndex, bool)
public void ExecuteEquipWeaponAtIndex(EquipmentIndex index, bool isLeftHand)
Parameters
indexEquipmentIndexisLeftHandbool
ExecuteStartCustomAnimation(string, bool, float)
public void ExecuteStartCustomAnimation(string animation, bool loop = false, float loopInterval = 0)
Parameters
ExecuteStopCustomAnimation()
public void ExecuteStopCustomAnimation()
FillFrom(BasicCharacterObject, int)
public void FillFrom(BasicCharacterObject character, int seed = -1)
Parameters
characterBasicCharacterObjectseedint
FillFrom(CharacterViewModel, int)
public void FillFrom(CharacterViewModel characterViewModel, int seed = -1)
Parameters
characterViewModelCharacterViewModelseedint
SetEquipment(Equipment)
public virtual void SetEquipment(Equipment equipment)
Parameters
equipmentEquipment
SetEquipment(EquipmentIndex, EquipmentElement)
public void SetEquipment(EquipmentIndex index, EquipmentElement item)
Parameters
indexEquipmentIndexitemEquipmentElement
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).