internal static int GetScoreFromColor(IndicatorInfo indicator, Dictionary <Color, int> colorCountDictionary) { int colorCount; if (colorCountDictionary.TryGetValue(indicator.Color, out colorCount)) { colorCount++; colorCountDictionary[indicator.Color]++; } else { colorCount = 1; colorCountDictionary.Add(indicator.Color, colorCount); } return(ColorOfIndicatorLightValues[indicator.Color][colorCount - 1].Item2); }
internal static int GetScoreFromPosition(IndicatorInfo indicator) { return(indicator.IsFlashing ? PositionOfIndicatorLightValues[indicator.Color][indicator.Index] : ColorOfIndicatorLightValues[indicator.Color][indicator.Index].Item1); }