public void UpdateValues(SkillPointSet pointSet)
 {
     foreach (SkillPointType pointType in pointSet.PointTypes)
     {
         PointModDelegate del = _modifierDels[pointType.Type];
         pointType.Value = (int)del.DynamicInvoke(pointType.Value);
     }
 }
Esempio n. 2
0
        public object TestUpdateSkills(object[] aParams)
        {
            SkillNode node = skillWeb.Nodes.First();
            SkillNode node_two = skillWeb.Nodes[1];
            node.SkillPointsModifier.GetModDels()[SkillPointType.Types.Blue] = x => { return x + 4; };
            node_two.SkillPointsModifier.GetModDels()[SkillPointType.Types.Red] = x => { return x + 8; };
            SkillPointSet skillPointSet = new SkillPointSet(0, 0);
            Log.Instance.Log("===");
            skillPointSet.Report();
            Log.Instance.Log("---");
            node.UpdateValues(skillPointSet);
            skillPointSet.Report();
            Log.Instance.Log("---");
            node_two.UpdateValues(skillPointSet);
            skillPointSet.Report();
            Log.Instance.Log("===");
            Log.Instance.Log("");

            return null;
        }
Esempio n. 3
0
 public void UpdateValues(SkillPointSet skillPointSet)
 {
     SkillPointsModifier.UpdateValues(skillPointSet);
 }