Пример #1
0
 public TalentAttribute GetTalentAttribute(AttributeId attr_id)
 {
     for (int i = 0; i < (int)EquipSlot.kMax; i++)
     {
         TalentCard card = null;
         if (m_EquipTalents.TryGetValue((EquipSlot)i, out card))
         {
             for (int phase = 0; phase < (int)TalentPhase.kMax; phase++)
             {
                 TalentAttribute attr = card.GetAttribute((TalentPhase)phase);
                 if (attr != null && attr.GetId() == attr_id)
                 {
                     return(attr);
                 }
             }
         }
     }
     return(null);
 }
Пример #2
0
 public TalentCard(TalentType talent_type)
 {
     m_TalentType       = talent_type;
     m_TalentAttributes = new TalentAttribute[(int)TalentPhase.kMax];
 }