示例#1
0
 public TalentItem(TalentTree talentTree, string talentName, int row, int col, int index, string[] description, string icon, int currentRank, int maxRank, TalentItem prereq)
 {
     _talentTree  = talentTree;
     _talentName  = talentName;
     _row         = row;
     _col         = col;
     _index       = index;
     _description = description;
     _iconName    = icon;
     _maxRank     = maxRank;
     _currentRank = currentRank > maxRank ? maxRank : currentRank;
     Prereq       = prereq;
     UpdateIcon();
     UpdateOverlay();
 }
示例#2
0
 public TalentItem(TalentTree talentTree, string talentName, int row, int col, int index, string[] description, string icon, int currentRank, int maxRank)
     : this(talentTree, talentName, row, col, index, description, icon, currentRank, maxRank, null)
 {
 }