Exemple #1
0
 public void AddActiveCellChange(int gridCellIndex, int activeSkillId)
 {
     if (ActiveSkillChanges.ContainsKey(activeSkillId))
     {
         ActiveSkillChanges[activeSkillId].ActiveCellChanges.Add(gridCellIndex);
     }
     else
     {
         var skillUpgrade = new ActiveSkillChanges();
         skillUpgrade.ActiveCellChanges.Add(gridCellIndex);
         ActiveSkillChanges.Add(activeSkillId, skillUpgrade);
     }
 }
Exemple #2
0
 private void AddSpentActionPoint(int activeSkillId)
 {
     if (ActiveSkillChanges.ContainsKey(activeSkillId))
     {
         ActiveSkillChanges[activeSkillId].PointsSpent++;
     }
     else
     {
         ActiveSkillChanges[activeSkillId] = new ActiveSkillChanges
         {
             PointsSpent = 1
         };
     }
 }