Ejemplo n.º 1
0
 private void UpdateSkills(Character currentCharacter)
 {
     if (SkillListObject == null)
     {
         return;
     }
     if (currentCharacter == null)
     {
         SkillListObject.Clear();
         return;
     }
     foreach (string skillname in currentCharacter.GetSkills())
     {
         SkillListObject.SetSkill(skillname,
                                  currentCharacter.GetSkillType(skillname),
                                  currentCharacter.GetSkillMod(skillname),
                                  currentCharacter.HasProficiency(skillname));
     }
 }