public void UpdateSkillTalentByProtocol(List <TalentProto> talents, List <int> selected) { normalPassiveSkilIdDic.Clear(); PlayerSkillTalentData data; for (int i = 0, count = talents.Count; i < count; i++) { TalentProto proto = talents[i]; data = PlayerSkillTalentData.GetSkillTalentDataByID(proto.no); if (proto.lv >= 1 && data.groupType == Logic.Enums.PlayerSkillTalentType.PassiveNormal) { normalPassiveSkilIdDic[data.effect] = proto.lv; } if (selected.Contains(proto.no)) { if (data.groupType == PlayerSkillTalentType.PassiveThreeChoiceOne) { this.passiveSkillId = data.effect; this.passiveSkillLevel = proto.lv; } else if (data.groupType == PlayerSkillTalentType.SummonThreeChoiceOne) { this.summonEffectId = data.effect; this.summonSkillLevel = proto.lv; } } } }
public void Set(int talentid, int level, int exp) { this.id = talentid; talentData = PlayerSkillTalentData.GetSkillTalentDataByID(talentid); this.level = level; this.exp = exp; }