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); } }
private void AddSpentActionPoint(int activeSkillId) { if (ActiveSkillChanges.ContainsKey(activeSkillId)) { ActiveSkillChanges[activeSkillId].PointsSpent++; } else { ActiveSkillChanges[activeSkillId] = new ActiveSkillChanges { PointsSpent = 1 }; } }