Example #1
0
 // Methods
 // Skills
 public void SetUsedSkillPointsEvent(ActiveListedSkill skill)
 {
     if (skill != null)
     {
         skill.PointChangedEvent += SetUsedSkillPoints;
         SetUsedSkillPoints(skill.TotalPoint);
     }
     else
     {
         SetUsedSkillPoints(0);
     }
 }
Example #2
0
        public void AddSkillExecute()
        {
            var x = new ActiveListedSkill(SelectedItem);

            if (!PlayerSkillList.Any(p => p.SkillModel.Name == SelectedItem.Name))
            {
                if (SelectedItem != null)
                {
                    PlayerSkillList.Add(x);
                }
                OnSkillAdded(x);
                AddSkillCommand.RaiseCanExecuteChanged();
                //x.DescriptionChangedEvent += UpdateDescription;
            }
        }
Example #3
0
 private void OnSkillAdded(ActiveListedSkill x)
 {
     SkillAddedEvent?.Invoke(x);
 }