Exemplo n.º 1
0
        public CSSkillVM(SkillObject skill, CSSkillScreenVM SkillScreenVM, CSScreenData screendata) //Action<PerkVM> onStartPerkSelection,
        {
            this.Skill          = skill;
            this._skill         = skill;
            this._SkillScreenVM = SkillScreenVM;
            this._screendata    = screendata;
            this.SkillId        = skill.StringId;
            this.Type           = (skill.IsPartySkill ? CSSkillVM.SkillType.Party : (skill.IsLeaderSkill ? CSSkillVM.SkillType.Leader : CSSkillVM.SkillType.Default)).ToString();

            this._boundAttributeName  = CharacterAttributes.GetCharacterAttribute(this.Skill.CharacterAttributeEnum).Name;
            this.LearningRateTooltip  = new BasicTooltipViewModel(() => CampaignUIHelper.GetLearningRateTooltip(this._boundAttributeCurrentValue, this.CurrentFocusLevel, this.Level, this._heroLevel, this._boundAttributeName));
            this.LearningLimitTooltip = new BasicTooltipViewModel(() => CampaignUIHelper.GetLearningLimitTooltip(this._boundAttributeCurrentValue, this.CurrentFocusLevel, this._boundAttributeName));
            this.InitializeValues();
            this._focusConceptObj = Concept.All.SingleOrDefault((Concept c) => c.StringId == "str_game_objects_skill_focus");
            this._skillConceptObj = Concept.All.SingleOrDefault((Concept c) => c.StringId == "str_game_objects_skills");
            this.RefreshValues();
        }