Ejemplo n.º 1
0
        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;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public void Set(int talentid, int level, int exp)
        {
            this.id = talentid;

            talentData = PlayerSkillTalentData.GetSkillTalentDataByID(talentid);
            this.level = level;
            this.exp   = exp;
        }