public ShotGroup(string name, ShotGroup sg) { Name = name; ShotList = sg.ShotList; }
/// <summary> /// This is to figure out which of the default rotations (if any) are in use /// </summary> /// <returns>The combobox index to use</returns> private int ShotRotationIndexCheck() { int specIndex = 0; List<Shot> list = new List<Shot>() { }; foreach (ComboBox cb in ShotPriorityBoxes) { list.Add(CalculationOptionsHunter.ShotList[cb.SelectedIndex < 0 ? 0 : cb.SelectedIndex]); } ShotGroup current = new ShotGroup("Custom", list); if (current == CalculationOptionsHunter.BeastMaster) { specIndex = (int)Specs.BeastMaster; } else if (current == CalculationOptionsHunter.Marksman) { specIndex = (int)Specs.Marksman; } else if (current == CalculationOptionsHunter.Survival) { specIndex = (int)Specs.Survival; } return specIndex; }