private void ForceRefresh() { if (this._initialized) { int stanceIndex = (int)this._stanceIndex; this._stanceIndex = CharacterViewModel.StanceTypes.None; this.SetStanceIndex(stanceIndex); } }
public void SetStanceIndex(int index) { if (this._initialized && this._stanceIndex != (CharacterViewModel.StanceTypes)index) { switch (index) { case 0: this._agentVisuals.SetAction(SpouseCharacterTableau.act_inventory_idle_start, 0f); break; case 1: this._camPos = this._tableauScene.ReadAndCalculateInitialCamera(); this._camPos.Elevate(-2f); this._camPos.Advance(0.5f); break; case 2: case 4: if (this._agentVisuals != null) { this._camPos = this._tableauScene.ReadAndCalculateInitialCamera(); if (this._equipment[10].Item != null) { this._camPos.Advance(0.5f); this.AddMount(true); this._agentVisuals.SetAction(this._mountEntity.Skeleton.GetActionAtChannel(0), this._mountEntity.Skeleton.GetAnimationParameterAtChannel(0)); for (int i = 0; i < 4; i++) { this._mountEntity.Skeleton.TickAnimationsAndForceUpdate(0.1f, this._frame, true); this._agentVisuals.GetVisuals().GetSkeleton().TickAnimationsAndForceUpdate(0.1f, this._frame, true); } } else { this._camPos.Elevate(-2f); this._camPos.Advance(0.5f); this._agentVisuals.SetAction(SpouseCharacterTableau.act_inventory_idle_start, 0f); } } break; case 3: { AgentVisuals expr_175 = this._agentVisuals; if (expr_175 != null) { expr_175.SetAction(SpouseCharacterTableau.act_cheer_1, 0f); } break; } } } this._stanceIndex = (CharacterViewModel.StanceTypes)index; }
public HeroViewModelEx(Hero hero, CharacterViewModel.StanceTypes stance = CharacterViewModel.StanceTypes.None) : base(stance) { this.hero = hero; this.btnText = new TextObject("{=Telepathy_Talk_To_Me}Talk to me!", null).ToString(); }
public SpouseViewModel(CharacterViewModel.StanceTypes stance = CharacterViewModel.StanceTypes.None) : base(stance) { }