Exemplo n.º 1
0
        public Talent Learn(TalentId id, int rank)
        {
            var entry = TalentMgr.GetEntry(id);

            if (entry != null)
            {
                return(Learn(entry, rank));
            }
            return(null);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Whether the given talent can be learned by this Character
        /// </summary>
        public bool CanLearn(TalentId id, int rank)
        {
            TalentEntry entry = TalentMgr.GetEntry(id);

            if (entry != null)
            {
                return(CanLearn(entry, rank));
            }
            return(false);
        }
Exemplo n.º 3
0
        public Talent Learn(TalentId id, int rank)
        {
            TalentEntry entry = TalentMgr.GetEntry(id);

            if (entry != null)
            {
                return(this.Learn(entry, rank));
            }
            return((Talent)null);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Whether the given talent can be learned by this Character
        /// </summary>
        public bool CanLearn(TalentId id, int rank)
        {
            var talent = TalentMgr.GetEntry(id);

            return(talent != null && CanLearn(talent, rank));
        }
Exemplo n.º 5
0
        /// <summary>
        /// Sets the given talent to the given rank without any checks.
        /// Make sure that the given TalentId is valid for this Character's class.
        /// </summary>
        public Talent Set(TalentId id, int rank)
        {
            var entry = TalentMgr.GetEntry(id);

            return(Set(entry, rank));
        }
Exemplo n.º 6
0
 /// <summary>
 /// Sets the given talent to the given rank without any checks.
 /// Make sure that the given TalentId is valid for this Character's class.
 /// </summary>
 public Talent Set(TalentId id, int rank)
 {
     return(Set(TalentMgr.GetEntry(id), rank));
 }